xorp

FibConfigForwardingProcLinux Class Reference

Inheritance diagram for FibConfigForwardingProcLinux:
FibConfigForwarding

List of all members.

Public Member Functions

 FibConfigForwardingProcLinux (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~FibConfigForwardingProcLinux ()
 Virtual destructor.
virtual int unicast_forwarding_enabled4 (bool &ret_value, string &error_msg) const
 Test whether the IPv4 unicast forwarding engine is enabled or disabled to forward packets.
virtual int unicast_forwarding_enabled6 (bool &ret_value, string &error_msg) const
 Test whether the IPv6 unicast forwarding engine is enabled or disabled to forward packets.
virtual int accept_rtadv_enabled6 (bool &ret_value, string &error_msg) const
 Test whether the acceptance of IPv6 Router Advertisement messages is enabled or disabled.
virtual int set_unicast_forwarding_enabled4 (bool v, string &error_msg)
 Set the IPv4 unicast forwarding engine to enable or disable forwarding of packets.
virtual int set_unicast_forwarding_enabled6 (bool v, string &error_msg)
 Set the IPv6 unicast forwarding engine to enable or disable forwarding of packets.
virtual int set_accept_rtadv_enabled6 (bool v, string &error_msg)
 Enable or disable the acceptance of IPv6 Router Advertisement messages from other routers.

Static Private Attributes

static const string PROC_LINUX_FORWARDING_FILE_V4 = "/proc/sys/net/ipv4/ip_forward"
static const string PROC_LINUX_FORWARDING_FILE_V6 = "/proc/sys/net/ipv6/conf/all/forwarding"

Constructor & Destructor Documentation

FibConfigForwardingProcLinux::FibConfigForwardingProcLinux ( FeaDataPlaneManager fea_data_plane_manager)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

virtual int FibConfigForwardingProcLinux::accept_rtadv_enabled6 ( bool &  ret_value,
string &  error_msg 
) const [virtual]

Test whether the acceptance of IPv6 Router Advertisement messages is enabled or disabled.

Parameters:
ret_valueif true on return, then the acceptance of IPv6 Router Advertisement messages is enabled, otherwise is disabled.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FibConfigForwarding.

virtual int FibConfigForwardingProcLinux::set_accept_rtadv_enabled6 ( bool  v,
string &  error_msg 
) [virtual]

Enable or disable the acceptance of IPv6 Router Advertisement messages from other routers.

It should be enabled for hosts, and disabled for routers.

Parameters:
vif true, then enable the acceptance of IPv6 Router Advertisement messages, otherwise disable it.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FibConfigForwarding.

virtual int FibConfigForwardingProcLinux::set_unicast_forwarding_enabled4 ( bool  v,
string &  error_msg 
) [virtual]

Set the IPv4 unicast forwarding engine to enable or disable forwarding of packets.

Parameters:
vif true, then enable IPv4 unicast forwarding, otherwise disable it.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FibConfigForwarding.

virtual int FibConfigForwardingProcLinux::set_unicast_forwarding_enabled6 ( bool  v,
string &  error_msg 
) [virtual]

Set the IPv6 unicast forwarding engine to enable or disable forwarding of packets.

Parameters:
vif true, then enable IPv6 unicast forwarding, otherwise disable it.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FibConfigForwarding.

virtual int FibConfigForwardingProcLinux::unicast_forwarding_enabled4 ( bool &  ret_value,
string &  error_msg 
) const [virtual]

Test whether the IPv4 unicast forwarding engine is enabled or disabled to forward packets.

Parameters:
ret_valueif true on return, then the IPv4 unicast forwarding is enabled, otherwise is disabled.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FibConfigForwarding.

virtual int FibConfigForwardingProcLinux::unicast_forwarding_enabled6 ( bool &  ret_value,
string &  error_msg 
) const [virtual]

Test whether the IPv6 unicast forwarding engine is enabled or disabled to forward packets.

Parameters:
ret_valueif true on return, then the IPv6 unicast forwarding is enabled, otherwise is disabled.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FibConfigForwarding.


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