xorp

IfConfigGetSysctl Class Reference

Inheritance diagram for IfConfigGetSysctl:
IfConfigGet

List of all members.

Public Member Functions

 IfConfigGetSysctl (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~IfConfigGetSysctl ()
 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_routing_socket (IfConfig &ifconfig, IfTree &iftree, const vector< uint8_t > &buffer)
 Parse information about network interface configuration change from the underlying system.

Private Member Functions

int read_config (IfTree &iftree)

Static Private Member Functions

static string iff_flags (uint32_t flags)

Constructor & Destructor Documentation

IfConfigGetSysctl::IfConfigGetSysctl ( FeaDataPlaneManager fea_data_plane_manager)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

static int IfConfigGetSysctl::parse_buffer_routing_socket ( IfConfig ifconfig,
IfTree iftree,
const vector< uint8_t > &  buffer 
) [static]

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

The information to parse is in RTM format (e.g., obtained by routing sockets or by sysctl(3) mechanism).

Parameters:
ifconfigthe IfConfig instance.
iftreethe IfTree storage to store the parsed information.
bufferthe buffer with the data to parse.
Returns:
XORP_OK on success, otherwise XORP_ERROR.
See also:
IfTree.
virtual int IfConfigGetSysctl::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 IfConfigGetSysctl::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 IfConfigGetSysctl::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