|
| ||||||||||||||||
Class for holding an IPv4 interface address and address related items.
| IfTreeAddr4 (const IPv4& addr)
| IfTreeAddr4 |
| const IPv4& addr ()
| addr |
[const]
| bool enabled ()
| enabled |
[const]
| bool broadcast ()
| broadcast |
[const]
| bool loopback ()
| loopback |
[const]
| bool point_to_point ()
| point_to_point |
[const]
| bool multicast ()
| multicast |
[const]
| void set_enabled (bool en)
| set_enabled |
| void set_broadcast (bool v)
| set_broadcast |
| void set_loopback (bool v)
| set_loopback |
| void set_point_to_point (bool v)
| set_point_to_point |
| void set_multicast (bool v)
| set_multicast |
| uint32_t prefix_len ()
| prefix_len |
[const]
Get prefix length associates with address.
| int set_prefix_len (uint32_t prefix_len)
| set_prefix_len |
Set prefix length associate with address.
Returns: XORP_OK on success, otherwise XORP_ERROR.
| IPv4 bcast ()
| bcast |
[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. |
| void copy_state (const IfTreeAddr4& o)
| copy_state |
Copy state of internal variables from another IfTreeAddr4.
| 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.
| string str ()
| str |
[const]
Reimplemented from IfTreeItem.