class IfTreeVif

Fea class for virtual (logical) interface state. More...

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

Public Types

Public Methods

Protected Methods

Protected Members


Detailed Description

Fea class for virtual (logical) interface state.

typedef map<const IPv4, IfTreeAddr4> V4Map

V4Map

typedef map<const IPv6, IfTreeAddr6> V6Map

V6Map

 IfTreeVif (const string& ifname, const string& vifname)

IfTreeVif

const string&  ifname ()

ifname

[const]

const string&  vifname ()

vifname

[const]

inline uint16_t  pif_index ()

pif_index

[const]

inline void  set_pif_index (uint16_t v)

set_pif_index

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 const V4Map&  v4addrs ()

v4addrs

[const]

inline V4Map&  v4addrs ()

v4addrs

inline const V6Map&  v6addrs ()

v6addrs

[const]

inline V6Map&  v6addrs ()

v6addrs

inline V4Map::iterator  get_addr (const IPv4& a)

get_addr

inline V6Map::iterator  get_addr (const IPv6& a)

get_addr

inline V4Map::const_iterator  get_addr (const IPv4& a)

get_addr

[const]

inline V6Map::const_iterator  get_addr (const IPv6& a)

get_addr

[const]

bool  add_addr (const IPv4& v4addr)

add_addr

Add address.

Parameters:
v4addraddress to be added.

Returns: true on success, false if address already exists

bool  remove_addr (const IPv4& v4addr)

remove_addr

Mark address as DELETED. Deletion occurs when finalize_state is called.

Parameters:
v4addraddress to labelled.

Returns: true on success, false if address does not exist.

bool  add_addr (const IPv6& v6addr)

add_addr

Add address.

Parameters:
v4addraddress to be added.

Returns: true on success, false if address already exists

bool  remove_addr (const IPv6& v6addr)

remove_addr

Mark address as DELETED. Deletion occurs when finalize_state is called.

Parameters:
v4addraddress to labelled.

Returns: true on success, false if address does not exist.

inline void  copy_state (const IfTreeVif& o)

copy_state

Copy state of internal variables from another IfTreeVif.

inline bool  is_same_state (const IfTreeVif& o)

is_same_state

Test if the vif-specific internal state is same.

Parameters:
othe IfTreeVif to compare against.

Returns: true if the vif-specific internal state is same.

void  finalize_state ()

finalize_state

Reimplemented from IfTreeItem.

string  str ()

str

[const]

Reimplemented from IfTreeItem.

const string _ifname

_ifname

[protected]

const string _vifname

_vifname

[protected]

uint16_t _pif_index

_pif_index

[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]

V4Map _v4addrs

_v4addrs

[protected]

V6Map _v6addrs

_v6addrs

[protected]

inline IfTreeVif::V4Map::iterator  get_addr (const IPv4& a)

get_addr

[protected]

inline IfTreeVif::V6Map::iterator  get_addr (const IPv6& a)

get_addr

[protected]

inline IfTreeVif::V4Map::const_iterator  get_addr (const IPv4& a)

get_addr

[protected const]

inline IfTreeVif::V6Map::const_iterator  get_addr (const IPv6& a)

get_addr

[protected const]


Generated by: pavlin on possum.icir.org on Thu Aug 28 12:52:10 2003, using kdoc 2.0a54+XORP.