xorp

XrlRipCommonTarget< A > Class Template Reference

Common handler for Xrl Requests. More...

#include <xrl_target_common.hh>

List of all members.

Public Member Functions

 XrlRipCommonTarget (XrlProcessSpy &xps, XrlPortManager< A > &xpm, XrlRedistManager< A > &xrm, System< A > &rip_system)
void set_status (ProcessStatus ps, const string &annotation="")
XrlCmdError common_0_1_get_status (uint32_t &status, string &reason)
XrlCmdError common_0_1_shutdown ()
XrlCmdError common_0_1_startup ()
XrlCmdError finder_event_observer_0_1_xrl_target_birth (const string &class_name, const string &instance_name)
XrlCmdError finder_event_observer_0_1_xrl_target_death (const string &class_name, const string &instance_name)
XrlCmdError ripx_0_1_add_rip_address (const string &ifname, const string &vifname, const A &addr)
XrlCmdError ripx_0_1_remove_rip_address (const string &ifname, const string &vifname, const A &addr)
XrlCmdError ripx_0_1_set_rip_address_enabled (const string &ifname, const string &vifname, const A &addr, const bool &enabled)
XrlCmdError ripx_0_1_rip_address_enabled (const string &ifname, const string &vifname, const A &addr, bool &enabled)
XrlCmdError ripx_0_1_set_cost (const string &ifname, const string &vifname, const A &addr, const uint32_t &cost)
XrlCmdError ripx_0_1_cost (const string &ifname, const string &vifname, const A &addr, uint32_t &cost)
XrlCmdError ripx_0_1_set_horizon (const string &ifname, const string &vifname, const A &addr, const string &horizon)
XrlCmdError ripx_0_1_horizon (const string &ifname, const string &vifname, const A &addr, string &horizon)
XrlCmdError ripx_0_1_set_passive (const string &ifname, const string &vifname, const A &addr, const bool &passive)
XrlCmdError ripx_0_1_passive (const string &ifname, const string &vifname, const A &addr, bool &passive)
XrlCmdError ripx_0_1_set_accept_non_rip_requests (const string &ifname, const string &vifname, const A &addr, const bool &accept)
XrlCmdError ripx_0_1_accept_non_rip_requests (const string &ifname, const string &vifname, const A &addr, bool &accept)
XrlCmdError ripx_0_1_set_accept_default_route (const string &ifname, const string &vifname, const A &addr, const bool &accept)
XrlCmdError ripx_0_1_accept_default_route (const string &ifname, const string &vifname, const A &addr, bool &accept)
XrlCmdError ripx_0_1_set_advertise_default_route (const string &ifname, const string &vifname, const A &addr, const bool &advertise)
XrlCmdError ripx_0_1_advertise_default_route (const string &ifname, const string &vifname, const A &addr, bool &advertise)
XrlCmdError ripx_0_1_set_route_timeout (const string &ifname, const string &vifname, const A &addr, const uint32_t &t_secs)
XrlCmdError ripx_0_1_route_timeout (const string &ifname, const string &vifname, const A &addr, uint32_t &t_secs)
XrlCmdError ripx_0_1_set_deletion_delay (const string &ifname, const string &vifname, const A &addr, const uint32_t &t_secs)
XrlCmdError ripx_0_1_deletion_delay (const string &ifname, const string &vifname, const A &addr, uint32_t &t_secs)
XrlCmdError ripx_0_1_set_request_interval (const string &ifname, const string &vifname, const A &addr, const uint32_t &t_secs)
XrlCmdError ripx_0_1_request_interval (const string &ifname, const string &vifname, const A &addr, uint32_t &t_secs)
XrlCmdError ripx_0_1_set_update_interval (const string &ifname, const string &vifname, const A &addr, const uint32_t &t_secs)
XrlCmdError ripx_0_1_update_interval (const string &ifname, const string &vifname, const A &addr, uint32_t &t_secs)
XrlCmdError ripx_0_1_set_update_jitter (const string &ifname, const string &vifname, const A &addr, const uint32_t &t_jitter)
XrlCmdError ripx_0_1_update_jitter (const string &ifname, const string &vifname, const A &addr, uint32_t &t_secs)
XrlCmdError ripx_0_1_set_triggered_update_delay (const string &ifname, const string &vifname, const A &addr, const uint32_t &t_secs)
XrlCmdError ripx_0_1_triggered_update_delay (const string &ifname, const string &vifname, const A &addr, uint32_t &t_secs)
XrlCmdError ripx_0_1_set_triggered_update_jitter (const string &ifname, const string &vifname, const A &addr, const uint32_t &t_secs)
XrlCmdError ripx_0_1_triggered_update_jitter (const string &ifname, const string &vifname, const A &addr, uint32_t &t_secs)
XrlCmdError ripx_0_1_set_interpacket_delay (const string &ifname, const string &vifname, const A &addr, const uint32_t &t_msecs)
XrlCmdError ripx_0_1_interpacket_delay (const string &ifname, const string &vifname, const A &addr, uint32_t &t_msecs)
XrlCmdError ripx_0_1_rip_address_status (const string &ifname, const string &vifname, const A &addr, string &status)
XrlCmdError ripx_0_1_get_all_addresses (XrlAtomList &ifnames, XrlAtomList &vifnames, XrlAtomList &addrs)
XrlCmdError ripx_0_1_get_peers (const string &ifname, const string &vifname, const A &addr, XrlAtomList &peers)
XrlCmdError ripx_0_1_get_all_peers (XrlAtomList &peers, XrlAtomList &ifnames, XrlAtomList &vifnames, XrlAtomList &addrs)
XrlCmdError ripx_0_1_get_counters (const string &ifname, const string &vifname, const A &addr, XrlAtomList &descriptions, XrlAtomList &values)
XrlCmdError ripx_0_1_get_peer_counters (const string &ifname, const string &vifname, const A &addr, const A &peer, XrlAtomList &descriptions, XrlAtomList &values, uint32_t &peer_last_pkt)
XrlCmdError trace (bool enable)
XrlCmdError socketx_user_0_1_recv_event (const string &sockid, const string &if_name, const string &vif_name, const A &src_host, const uint32_t &src_port, const vector< uint8_t > &pdata)
XrlCmdError socketx_user_0_1_inbound_connect_event (const string &sockid, const A &src_host, const uint32_t &src_port, const string &new_sockid, bool &accept)
XrlCmdError socketx_user_0_1_outgoing_connect_event (const string &sockid)
XrlCmdError socketx_user_0_1_error_event (const string &sockid, const string &reason, const bool &fatal)
XrlCmdError socketx_user_0_1_disconnect_event (const string &sockid)
XrlCmdError policy_backend_0_1_configure (const uint32_t &filter, const string &conf)
XrlCmdError policy_backend_0_1_reset (const uint32_t &filter)
XrlCmdError policy_backend_0_1_push_routes ()
XrlCmdError policy_redistx_0_1_add_routex (const IPNet< A > &net, const bool &unicast, const bool &multicast, const A &nexthop, const uint32_t &metric, const XrlAtomList &policytags)
XrlCmdError policy_redistx_0_1_delete_routex (const IPNet< A > &net, const bool &unicast, const bool &multicast)
pair< Port< A > *, XrlCmdErrorfind_port (const string &ifname, const string &vifname, const A &addr)
 Find Port associated with ifname, vifname, addr.

Protected Attributes

XrlProcessSpy_xps
XrlPortManager< A > & _xpm
XrlRedistManager< A > & _xrm
ProcessStatus _status
string _status_note
System< A > & _rip_system

Detailed Description

template<typename A>
class XrlRipCommonTarget< A >

Common handler for Xrl Requests.

This class implements Xrl Target code that is common to both RIP and RIP NG.


Member Function Documentation

template<typename A>
pair< Port< A > *, XrlCmdError > XrlRipCommonTarget< A >::find_port ( const string &  ifname,
const string &  vifname,
const A &  addr 
)

Find Port associated with ifname, vifname, addr.

Returns:
on success the first item in the pair will be a non-null pointer to the port and the second item with be XrlCmdError::OKAY(). On failyre the first item in the pair will be null and the XrlCmdError will signify the reason for the failure.

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