class IfTreeAddr4
|
Class for holding an IPv4 interface address and address related items. More... |
|
|
Public Methods
Protected Members
Class for holding an IPv4 interface address and address related items.
IfTreeAddr4 (const IPv4& addr)
| IfTreeAddr4 |
inline const IPv4& addr ()
| addr |
[const]
inline bool enabled ()
| enabled |
[const]
inline bool broadcast ()
| broadcast |
[const]
inline bool loopback ()
| loopback |
[const]
inline bool point_to_point ()
| point_to_point |
[const]
inline bool multicast ()
| multicast |
[const]
inline void set_enabled (bool en)
| set_enabled |
inline void set_broadcast (bool v)
| set_broadcast |
inline void set_loopback (bool v)
| set_loopback |
inline void set_point_to_point (bool v)
| set_point_to_point |
inline void set_multicast (bool v)
| set_multicast |
inline uint32_t prefix ()
| prefix |
[const]
Get prefix associates with interface.
bool set_prefix (uint32_t prefix)
| set_prefix |
Set prefix associate with interface.
Returns: true on success, false if prefix is invalid
[const]
Get the broadcast address.
Returns: the broadcast address or IPv4::ZERO() if there is no
broadcast address set.
void set_bcast (const IPv4& baddr)
| set_bcast |
Set the broadcast address.
Parameters:
baddr | the broadcast address.
|
IPv4 endpoint ()
| endpoint |
[const]
Get the endpoint address of a point-to-point link.
Returns: the broadcast address or IPv4::ZERO() if there is no
broadcast address set.
void set_endpoint (const IPv4& oaddr)
| set_endpoint |
Set the endpoint address of a point-to-point link.
Parameters:
oaddr | the endpoint address.
|
inline void copy_state (const IfTreeAddr4& o)
| copy_state |
Copy state of internal variables from another IfTreeAddr4.
inline bool is_same_state (const IfTreeAddr4& o)
| is_same_state |
Test if the address-specific internal state is same.
Parameters:
o | the IfTreeAddr4 to compare against.
|
Returns: true if the address-specific internal state is same.
void finalize_state ()
| finalize_state |
Reimplemented from IfTreeItem.
[const]
Reimplemented from IfTreeItem.
[protected]
[protected]
bool _broadcast
| _broadcast |
[protected]
[protected]
bool _point_to_point
| _point_to_point |
[protected]
bool _multicast
| _multicast |
[protected]
[protected]
[protected]
Generated by: pavlin on possum.icir.org on Thu Aug 28 12:52:10 2003, using kdoc 2.0a54+XORP. |