xorp

IfTreeAddr6 Class Reference

Class for holding an IPv6 interface address and address related items. More...

#include <iftree.hh>

Inheritance diagram for IfTreeAddr6:
IfTreeItem NONCOPYABLE

List of all members.

Public Member Functions

 IfTreeAddr6 (const IPv6 &addr)
const IPv6addr () const
bool enabled () const
bool loopback () const
bool point_to_point () const
bool multicast () const
void set_enabled (bool en)
void set_loopback (bool v)
void set_point_to_point (bool v)
void set_multicast (bool v)
uint32_t prefix_len () const
 Get prefix length associated with address.
int set_prefix_len (uint32_t prefix_len)
 Set prefix length associate with address.
IPv6 endpoint () const
void set_endpoint (const IPv6 &oaddr)
void copy_state (const IfTreeAddr6 &o)
 Copy state of internal variables from another IfTreeAddr6.
bool is_same_state (const IfTreeAddr6 &o)
 Test if the address-specific internal state is same.
void finalize_state ()
 Virtual method to be implemented to flush out state associated objects, ie if an object is marked CREATED or CHANGED it should be marked NO_CHANGE, if an object is marked DELETED, it should be removed from the relevant container and destructed.
string str () const

Private Attributes

IPv6 _addr
bool _enabled
bool _loopback
bool _point_to_point
bool _multicast
IPv6 _oaddr
uint32_t _prefix_len

Detailed Description

Class for holding an IPv6 interface address and address related items.


Member Function Documentation

bool IfTreeAddr6::is_same_state ( const IfTreeAddr6 o) [inline]

Test if the address-specific internal state is same.

Parameters:
othe IfTreeAddr6 to compare against.
Returns:
true if the address-specific internal state is same.
int IfTreeAddr6::set_prefix_len ( uint32_t  prefix_len)

Set prefix length associate with address.

Returns:
XORP_OK on success, otherwise XORP_ERROR.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations