class IfTreeAddr4

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

Definition#include <iftree.hh>
InheritsIfTreeItem [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

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 void  set_enabled (bool en)

set_enabled

inline bool  enabled ()

enabled

[const]

bool  set_prefix (uint32_t prefix)

set_prefix

Set prefix associate with interface.

Returns: true on success, false if prefix is invalid

inline uint32_t  prefix ()

prefix

[const]

Get prefix associates with interface.

inline uint32_t  flags ()

flags

[const]

Get flags associated with interface.

void  set_bcast (const IPv4& baddr)

set_bcast

Set the broadcast address.

Parameters:
baddrthe broadcast address.

IPv4  bcast ()

bcast

[const]

Get the broadcast address.

Returns: the broadcast address or IPv4::ZERO() if there is no broadcast address set.

void  set_endpoint (const IPv4& eaddr)

set_endpoint

Set the endpoint address of a point-to-point link.

Parameters:
eaddrthe endpoint address.

IPv4  endpoint ()

endpoint

[const]

Get the broadcast address.

Returns: the broadcast address or IPv4::ZERO() if there is no broadcast address set.

void  finalize_state ()

finalize_state

Reimplemented from IfTreeItem.

string  str ()

str

[const]

Reimplemented from IfTreeItem.

IPv4 _addr

_addr

[protected]

IPv4 _oaddr

_oaddr

[protected]

bool _en

_en

[protected]

uint32_t _flags

_flags

[protected]

uint32_t _prefix

_prefix

[protected]


Generated by: pavlin on possum.icir.org on Mon Mar 10 19:34:57 2003, using kdoc 2.0a54+XORP.