xorp

IfConfigGetGetifaddrs Class Reference

Inheritance diagram for IfConfigGetGetifaddrs:
IfConfigGet

List of all members.

Public Member Functions

 IfConfigGetGetifaddrs (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~IfConfigGetGetifaddrs ()
 Virtual destructor.
virtual int start (string &error_msg)
 Start operation.
virtual int stop (string &error_msg)
 Stop operation.
virtual int pull_config (const IfTree *local_config, IfTree &iftree)
 Pull the network interface information from the underlying system.

Static Public Member Functions

static int parse_buffer_getifaddrs (IfConfig &ifconfig, IfTree &iftree, const struct ifaddrs *ifap)
 Parse information about network interface configuration change from the underlying system.

Private Member Functions

int read_config (IfTree &iftree)

Constructor & Destructor Documentation

IfConfigGetGetifaddrs::IfConfigGetGetifaddrs ( FeaDataPlaneManager fea_data_plane_manager)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

static int IfConfigGetGetifaddrs::parse_buffer_getifaddrs ( IfConfig ifconfig,
IfTree iftree,
const struct ifaddrs *  ifap 
) [static]

Parse information about network interface configuration change from the underlying system.

The information to parse is in "struct ifaddrs" format (e.g., obtained by getifaddrs(3) mechanism).

Parameters:
ifconfigthe IfConfig instance.
iftreethe IfTree storage to store the parsed information.
ifapa linked list of the network interfaces on the local machine.
Returns:
XORP_OK on success, otherwise XORP_ERROR.
See also:
IfTree.
virtual int IfConfigGetGetifaddrs::pull_config ( const IfTree local_config,
IfTree iftree 
) [virtual]

Pull the network interface information from the underlying system.

Parameters:
iftreethe IfTree storage to store the pulled information.
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigGet.

virtual int IfConfigGetGetifaddrs::start ( string &  error_msg) [virtual]

Start operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigGet.

virtual int IfConfigGetGetifaddrs::stop ( string &  error_msg) [virtual]

Stop operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigGet.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations