class IfTreeAddr4

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

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Protected Members


Detailed Description

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_len ()

prefix_len

[const]

Get prefix length associates with address.

bool  set_prefix_len (uint32_t prefix_len)

set_prefix_len

Set prefix length associate with address.

Returns: true on success, false if prefix length is invalid.

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:

baddrthe 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:

oaddrthe 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:

othe 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.

IPv4 _addr

_addr

[protected]

bool _enabled

_enabled

[protected]

bool _broadcast

_broadcast

[protected]

bool _loopback

_loopback

[protected]

bool _point_to_point

_point_to_point

[protected]

bool _multicast

_multicast

[protected]

IPv4 _oaddr

_oaddr

[protected]

uint32_t _prefix_len

_prefix_len

[protected]


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:05 2005, using kdoc $.