xorp

FibConfigForwarding Class Reference

Inheritance diagram for FibConfigForwarding:
FibConfigForwardingDummy FibConfigForwardingProcLinux FibConfigForwardingSolaris FibConfigForwardingSysctl FibConfigForwardingWindows

List of all members.

Public Member Functions

 FibConfigForwarding (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~FibConfigForwarding ()
 Virtual destructor.
FibConfigfibconfig ()
 Get the FibConfig instance.
FeaDataPlaneManagerfea_data_plane_manager ()
 Get the FeaDataPlaneManager instance.
const FeaDataPlaneManagerfea_data_plane_manager () const
 Get the const FeaDataPlaneManager instance.
virtual bool is_running () const
 Test whether this instance is running.
virtual int start (string &error_msg)
 Start operation.
virtual int stop (string &error_msg)
 Stop operation.
virtual int unicast_forwarding_enabled4 (bool &ret_value, string &error_msg) const =0
 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 =0
 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 =0
 Test whether the acceptance of IPv6 Router Advertisement messages is enabled or disabled.
virtual int set_unicast_forwarding_enabled4 (bool v, string &error_msg)=0
 Set the IPv4 unicast forwarding engine to enable or disable forwarding of packets.
virtual int set_unicast_forwarding_enabled6 (bool v, string &error_msg)=0
 Set the IPv6 unicast forwarding engine to enable or disable forwarding of packets.
virtual int set_accept_rtadv_enabled6 (bool v, string &error_msg)=0
 Enable or disable the acceptance of IPv6 Router Advertisement messages from other routers.

Protected Attributes

bool _is_running

Private Attributes

FibConfig_fibconfig
FeaDataPlaneManager_fea_data_plane_manager
bool _orig_unicast_forwarding_enabled4
bool _orig_unicast_forwarding_enabled6
bool _orig_accept_rtadv_enabled6
bool _first_start

Constructor & Destructor Documentation

FibConfigForwarding::FibConfigForwarding ( FeaDataPlaneManager fea_data_plane_manager)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

virtual int FibConfigForwarding::accept_rtadv_enabled6 ( bool &  ret_value,
string &  error_msg 
) const [pure 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.

Implemented in FibConfigForwardingDummy, FibConfigForwardingProcLinux, FibConfigForwardingSolaris, FibConfigForwardingSysctl, and FibConfigForwardingWindows.

FeaDataPlaneManager& FibConfigForwarding::fea_data_plane_manager ( ) [inline]

Get the FeaDataPlaneManager instance.

Returns:
the FeaDataPlaneManager instance.
const FeaDataPlaneManager& FibConfigForwarding::fea_data_plane_manager ( ) const [inline]

Get the const FeaDataPlaneManager instance.

Returns:
the const FeaDataPlaneManager instance.
FibConfig& FibConfigForwarding::fibconfig ( ) [inline]

Get the FibConfig instance.

Returns:
the FibConfig instance.
virtual bool FibConfigForwarding::is_running ( ) const [inline, virtual]

Test whether this instance is running.

Returns:
true if the instance is running, otherwise false.
virtual int FibConfigForwarding::set_accept_rtadv_enabled6 ( bool  v,
string &  error_msg 
) [pure 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.

Implemented in FibConfigForwardingDummy, FibConfigForwardingProcLinux, FibConfigForwardingSolaris, FibConfigForwardingSysctl, and FibConfigForwardingWindows.

virtual int FibConfigForwarding::set_unicast_forwarding_enabled4 ( bool  v,
string &  error_msg 
) [pure 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.

Implemented in FibConfigForwardingDummy, FibConfigForwardingProcLinux, FibConfigForwardingSolaris, FibConfigForwardingSysctl, and FibConfigForwardingWindows.

virtual int FibConfigForwarding::set_unicast_forwarding_enabled6 ( bool  v,
string &  error_msg 
) [pure 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.

Implemented in FibConfigForwardingDummy, FibConfigForwardingProcLinux, FibConfigForwardingSolaris, FibConfigForwardingSysctl, and FibConfigForwardingWindows.

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

Start operation.

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

Reimplemented in FibConfigForwardingWindows.

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

Stop operation.

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

Reimplemented in FibConfigForwardingWindows.

virtual int FibConfigForwarding::unicast_forwarding_enabled4 ( bool &  ret_value,
string &  error_msg 
) const [pure 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.

Implemented in FibConfigForwardingDummy, FibConfigForwardingProcLinux, FibConfigForwardingSolaris, FibConfigForwardingSysctl, and FibConfigForwardingWindows.

virtual int FibConfigForwarding::unicast_forwarding_enabled6 ( bool &  ret_value,
string &  error_msg 
) const [pure 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.

Implemented in FibConfigForwardingDummy, FibConfigForwardingProcLinux, FibConfigForwardingSolaris, FibConfigForwardingSysctl, and FibConfigForwardingWindows.


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