Public Types |
|
typedef map< IPv4, IfTreeAddr4 * > | IPv4Map |
|
typedef map< IPv6, IfTreeAddr6 * > | IPv6Map |
Public Member Functions |
|
| IfTreeVif (IfTreeInterface &iface, const string &vifname) |
|
IfTree & | iftree () |
|
const string & | ifname () const |
|
const string & | vifname () const |
|
uint32_t | pif_index () const |
|
void | set_pif_index (uint32_t v) |
|
uint32_t | vif_index () const |
|
void | set_vif_index (uint32_t v) |
|
bool | enabled () const |
|
bool | broadcast () const |
|
bool | loopback () const |
|
bool | point_to_point () const |
|
bool | multicast () const |
|
bool | pim_register () const |
|
void | set_enabled (bool en) |
|
void | set_broadcast (bool v) |
|
void | set_loopback (bool v) |
|
void | set_point_to_point (bool v) |
|
void | set_multicast (bool v) |
|
void | set_pim_register (bool v) |
| uint32_t | vif_flags () const |
| | Get the system-specific vif flags.
|
| void | set_vif_flags (uint32_t v) |
| | Store the system-specific vif flags.
|
|
const IPv4Map & | ipv4addrs () const |
|
IPv4Map & | ipv4addrs () |
|
const IPv6Map & | ipv6addrs () const |
|
IPv6Map & | ipv6addrs () |
| void | copy_recursive_vif (const IfTreeVif &other_vif) |
| | Copy recursively from another vif.
|
| void | add_recursive_addr (const IfTreeAddr4 &other_addr, bool mark_state) |
| | Add recursively a new IPv4 address.
|
| void | add_recursive_addr (const IfTreeAddr6 &other_addr, bool mark_state) |
| | Add recursively a new IPv6 address.
|
| int | add_addr (const IPv4 &addr) |
| | Add IPv4 address.
|
| int | remove_addr (const IPv4 &addr) |
| | Mark IPv4 address as DELETED.
|
| int | add_addr (const IPv6 &addr) |
| | Add IPv6 address.
|
| int | remove_addr (const IPv6 &addr) |
| | Mark IPv6 address as DELETED.
|
| IfTreeAddr4 * | find_addr (const IPv4 &addr) |
| | Find an IPv4 address.
|
| const IfTreeAddr4 * | find_addr (const IPv4 &addr) const |
| | Find a const IPv4 address.
|
| IfTreeAddr6 * | find_addr (const IPv6 &addr) |
| | Find an IPv6 address.
|
| const IfTreeAddr6 * | find_addr (const IPv6 &addr) const |
| | Find a const IPv6 address.
|
|
void | propagate_flags_to_addresses () |
| | Propagate vif flags to the addresses.
|
|
void | copy_state (const IfTreeVif &o) |
| | Copy state of internal variables from another IfTreeVif.
|
| bool | is_same_state (const IfTreeVif &o) |
| | Test if the vif-specific internal state is same.
|
|
void | finalize_state () |
| | Virtual method to be implemented to flush out state associated objects, ie if an object is marked CREATED or CHANGED it should be marked NO_CHANGE, if an object is marked DELETED, it should be removed from the relevant container and destructed.
|
|
string | str () const |
Private Attributes |
|
IfTreeInterface & | _iface |
|
const string | _vifname |
|
uint32_t | _pif_index |
|
uint32_t | _vif_index |
|
bool | _enabled |
|
bool | _broadcast |
|
bool | _loopback |
|
bool | _point_to_point |
|
bool | _multicast |
|
bool | _pim_register |
|
uint32_t | _vif_flags |
|
IPv4Map | _ipv4addrs |
|
IPv6Map | _ipv6addrs |
FEA class for virtual (logical) interface state.