XrlCmdMap* _cmds | _cmds |
[protected]
XrlRipngTargetBase (XrlCmdMap* cmds = 0)
| XrlRipngTargetBase |
Constructor.
Parameters:
cmds | an XrlCmdMap that the commands associated with the target should be added to. This is typically the XrlRouter associated with the target. |
~XrlRipngTargetBase ()
| ~XrlRipngTargetBase |
[virtual]
Destructor.
Dissociates instance commands from command map.
bool set_command_map (XrlCmdMap* cmds)
| set_command_map |
Set command map.
Parameters:
cmds | pointer to command map to associate commands with. This argument is typically a pointer to the XrlRouter associated with the target. |
Returns: true on success, false if cmds is null or a command map has already been supplied.
inline const string& name ()
| name |
[const]
Get Xrl instance name associated with command map.
inline const char* version ()
| version |
[const]
Get version string of instance.
XrlCmdError common_0_1_get_target_name (
string& name)
| common_0_1_get_target_name |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
XrlCmdError common_0_1_get_version (
string& version)
| common_0_1_get_version |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get version string from Xrl Target
XrlCmdError common_0_1_get_status (
uint32_t& status,
string& reason)
| common_0_1_get_status |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
XrlCmdError common_0_1_shutdown ()
| common_0_1_shutdown |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Request clean shutdown of Xrl Target
XrlCmdError finder_event_observer_0_1_xrl_target_birth (
const string& target_class,
const string& target_instance)
| finder_event_observer_0_1_xrl_target_birth |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
XrlCmdError finder_event_observer_0_1_xrl_target_death (
const string& target_class,
const string& target_instance)
| finder_event_observer_0_1_xrl_target_death |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
XrlCmdError redist6_0_1_add_route (
const IPv6Net& dst,
const IPv6& nh,
const string& ifname,
const string& vifname,
const uint32_t& metric,
const uint32_t& ad,
const string& cookie)
| redist6_0_1_add_route |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Parameters:
dst | destination network. |
nh | nexthop router address. |
ifname | interface name associated with nexthop. |
vifname | virtual interface name with nexthop. |
metric | origin routing protocol metric for route. |
ad | administrative distance of origin routing protocol. |
cookie | value set be requestor to identify redistribution source. Typical value is the originating protocol name. |
XrlCmdError redist6_0_1_delete_route (
const IPv6Net& network,
const string& cookie)
| redist6_0_1_delete_route |
[protected pure virtual]
XrlCmdError redist6_0_1_starting_route_dump (
const string& cookie)
| redist6_0_1_starting_route_dump |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
When route redistribution begins, the receiver is sent the existing list of routes. This message marks the beginning of the routes being sent.
Parameters:
cookie | value set be requestor to identify redistribution source. Typical value is the originating protocol name. |
XrlCmdError redist6_0_1_finishing_route_dump (
const string& cookie)
| redist6_0_1_finishing_route_dump |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
When route redistribution begins, the receiver is sent the existing list of routes. This message marks the end of the existing routes being sent.
Parameters:
cookie | value set be requestor to identify redistribution source. Typical value is the originating protocol name. |
XrlCmdError ripng_0_1_add_rip_address (
const string& ifname,
const string& vifname,
const IPv6& addr)
| ripng_0_1_add_rip_address |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Add an address to run RIP process on. The addition of address is not instantaneous, RIP has to instantiate state in the FEA to send and receive packets. Once instantiated the address must be explicitly enabled with set_rip_address_enabled.
Parameters:
ifname | the interface that owns vif that has address. |
vifname | virtual interface owning address. |
addr | the address to be added. |
XrlCmdError ripng_0_1_remove_rip_address (
const string& ifname,
const string& vifname,
const IPv6& addr)
| ripng_0_1_remove_rip_address |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Remove an address RIP process is running on.
Parameters:
ifname | the interface that owns vif that has address. |
vifname | virtual interface owning address. |
addr | the address to be removed. |
XrlCmdError ripng_0_1_set_rip_address_enabled (
const string& ifname,
const string& vifname,
const IPv6& addr,
const bool& enabled)
| ripng_0_1_set_rip_address_enabled |
[protected pure virtual]
XrlCmdError ripng_0_1_rip_address_enabled (
const string& ifname,
const string& vifname,
const IPv6& addr,
bool& enabled)
| ripng_0_1_rip_address_enabled |
[protected pure virtual]
XrlCmdError ripng_0_1_set_cost (
const string& ifname,
const string& vifname,
const IPv6& addr,
const uint32_t& cost)
| ripng_0_1_set_cost |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set cost metric associated with address.
XrlCmdError ripng_0_1_cost (
const string& ifname,
const string& vifname,
const IPv6& addr,
uint32_t& cost)
| ripng_0_1_cost |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get cost metric associated with address.
XrlCmdError ripng_0_1_set_horizon (
const string& ifname,
const string& vifname,
const IPv6& addr,
const string& horizon)
| ripng_0_1_set_horizon |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set horizon type applied to routes advertised from address.
Parameters:
horizon | name of horizon type. Permitted values: "none", "poison-reverse" "split-horizon-poison-reverse" |
XrlCmdError ripng_0_1_horizon (
const string& ifname,
const string& vifname,
const IPv6& addr,
string& horizon)
| ripng_0_1_horizon |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get horizon type applied to routes advertised from address.
XrlCmdError ripng_0_1_set_passive (
const string& ifname,
const string& vifname,
const IPv6& addr,
const bool& passive)
| ripng_0_1_set_passive |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Make RIP passive (receive only) on interface/vif/address.
XrlCmdError ripng_0_1_passive (
const string& ifname,
const string& vifname,
const IPv6& addr,
bool& passive)
| ripng_0_1_passive |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get value indicating whether RIP is passive (receive only) on interface/vif/address.
XrlCmdError ripng_0_1_set_accept_non_rip_requests (
const string& ifname,
const string& vifname,
const IPv6& addr,
const bool& accept)
| ripng_0_1_set_accept_non_rip_requests |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Accept and respond to non-RIP requests.
XrlCmdError ripng_0_1_accept_non_rip_requests (
const string& ifname,
const string& vifname,
const IPv6& addr,
bool& accept)
| ripng_0_1_accept_non_rip_requests |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get value indicating whether non-RIP requests are accepted and responded to on interface/vif/address.
XrlCmdError ripng_0_1_set_accept_default_route (
const string& ifname,
const string& vifname,
const IPv6& addr,
const bool& accept)
| ripng_0_1_set_accept_default_route |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Accept default route from peers.
XrlCmdError ripng_0_1_accept_default_route (
const string& ifname,
const string& vifname,
const IPv6& addr,
bool& accept)
| ripng_0_1_accept_default_route |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Accessor for whether default route is accepted from peers.
XrlCmdError ripng_0_1_set_advertise_default_route (
const string& ifname,
const string& vifname,
const IPv6& addr,
const bool& advertise)
| ripng_0_1_set_advertise_default_route |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Advertise default route (if present).
XrlCmdError ripng_0_1_advertise_default_route (
const string& ifname,
const string& vifname,
const IPv6& addr,
bool& advertise)
| ripng_0_1_advertise_default_route |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Accessor for whether default route is advertised.
XrlCmdError ripng_0_1_set_route_expiry_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
const uint32_t& t_secs)
| ripng_0_1_set_route_expiry_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set period that routes associated with reception address will expire in the absence of updates.
XrlCmdError ripng_0_1_route_expiry_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
uint32_t& t_secs)
| ripng_0_1_route_expiry_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get period that routes associated with reception address will expire in the absence of updates.
XrlCmdError ripng_0_1_set_route_deletion_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
const uint32_t& t_secs)
| ripng_0_1_set_route_deletion_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set period that routes associated with reception address will be deleted after they've expired.
XrlCmdError ripng_0_1_route_deletion_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
uint32_t& t_secs)
| ripng_0_1_route_deletion_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get period that routes associated with reception address will be deleted after they've expired.
XrlCmdError ripng_0_1_set_table_request_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
const uint32_t& t_secs)
| ripng_0_1_set_table_request_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set period that route table requests should be sent from address when no peers are associated with it.
XrlCmdError ripng_0_1_table_request_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
uint32_t& t_secs)
| ripng_0_1_table_request_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set period that route table requests should be sent from address when no peers are associated with it.
XrlCmdError ripng_0_1_set_unsolicited_response_min_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
const uint32_t& t_secs)
| ripng_0_1_set_unsolicited_response_min_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set minimum period between the unsolicited sending of the routing table from address.
XrlCmdError ripng_0_1_unsolicited_response_min_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
uint32_t& t_secs)
| ripng_0_1_unsolicited_response_min_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get minimum period between the unsolicited sending of the routing table from address.
XrlCmdError ripng_0_1_set_unsolicited_response_max_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
const uint32_t& t_secs)
| ripng_0_1_set_unsolicited_response_max_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set maximum period between the unsolicited sending of the routing table from address.
XrlCmdError ripng_0_1_unsolicited_response_max_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
uint32_t& t_secs)
| ripng_0_1_unsolicited_response_max_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get maximum period between the unsolicited sending of the routing table from address.
XrlCmdError ripng_0_1_set_triggered_update_min_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
const uint32_t& t_secs)
| ripng_0_1_set_triggered_update_min_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set minimum period between sending triggered updates from address.
XrlCmdError ripng_0_1_triggered_update_min_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
uint32_t& t_secs)
| ripng_0_1_triggered_update_min_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get minimum period between sending triggered updates from address.
XrlCmdError ripng_0_1_set_triggered_update_max_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
const uint32_t& t_secs)
| ripng_0_1_set_triggered_update_max_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set maximum period between sending triggered updates from address.
XrlCmdError ripng_0_1_triggered_update_max_seconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
uint32_t& t_secs)
| ripng_0_1_triggered_update_max_seconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get maximum period between sending triggered updates from address.
XrlCmdError ripng_0_1_set_interpacket_delay_milliseconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
const uint32_t& t_msecs)
| ripng_0_1_set_interpacket_delay_milliseconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set the inter-packet delay between the output of packets from address.
XrlCmdError ripng_0_1_interpacket_delay_milliseconds (
const string& ifname,
const string& vifname,
const IPv6& addr,
uint32_t& t_msecs)
| ripng_0_1_interpacket_delay_milliseconds |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get the inter-packet delay between the output of packets from address.
XrlCmdError ripng_0_1_rip_address_status (
const string& ifname,
const string& vifname,
const IPv6& addr,
string& status)
| ripng_0_1_rip_address_status |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get a textual description of the status of address RIP is running upon.
Parameters:
ifname | the interface that owns vif that has the address. |
vifname | virtual interface owns the address. |
addr | the address to query. |
XrlCmdError ripng_0_1_get_all_addresses (
XrlAtomList& ifnames,
XrlAtomList& vifnames,
XrlAtomList& addrs)
| ripng_0_1_get_all_addresses |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
XrlCmdError ripng_0_1_get_counters (
const string& ifname,
const string& vifname,
const IPv6& addr,
XrlAtomList& counter_descriptions,
XrlAtomList& counter_values)
| ripng_0_1_get_counters |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get counters associated with interface / vif /address.
XrlCmdError ripng_0_1_get_peers (
const string& ifname,
const string& vifname,
const IPv6& addr,
XrlAtomList& peers)
| ripng_0_1_get_peers |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get the list of peers associated with interface / vif / address.
XrlCmdError ripng_0_1_get_all_peers (
XrlAtomList& peers,
XrlAtomList& ifnames,
XrlAtomList& vifnames,
XrlAtomList& addrs)
| ripng_0_1_get_all_peers |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get list of all peers known to RIP. There is a 1-to-1 correspondence between the items in the lists of peers, ifnames, vifnames, addrs.
XrlCmdError ripng_0_1_get_peer_counters (
const string& ifname,
const string& vifname,
const IPv6& addr,
const IPv6& peer,
XrlAtomList& counter_descriptions,
XrlAtomList& counter_values,
uint32_t& peer_last_active)
| ripng_0_1_get_peer_counters |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get counters associated with peer of interface / vif /address.
Parameters:
counter_descriptions | textual descriptions of counters. |
counter_values | values associated with counters. |
peer_last_active | is the number of seconds since TimeVal(0,0). |
XrlCmdError ripng_0_1_redist_protocol_routes (
const string& protocol_name,
const uint32_t& cost,
const uint32_t& tag)
| ripng_0_1_redist_protocol_routes |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Configure protocol route redistribution.
Parameters:
protocol_name | name of protocol to redistribute routes from. |
cost | RIP cost metric to assign to protocol routes. |
tag | RIP tag to associate with protocol routes. |
XrlCmdError ripng_0_1_no_redist_protocol_routes (
const string& protocol_name)
| ripng_0_1_no_redist_protocol_routes |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Remove protocol route redistribution.
Parameters:
protocol_name | name of protocol to stop redistribution of routes from. |
XrlCmdError socket6_user_0_1_recv_event (
const string& sockid,
const IPv6& src_host,
const uint32_t& src_port,
const vector<uint8_t>& data)
| socket6_user_0_1_recv_event |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Method invoked by target implementing socket6/0.1 when a packet arrives from an IPv6 source.
Parameters:
sockid | the identifier associated with socket where error occurred. |
src_host | the originating host. |
src_port | the originating IP port. |
data | the data received. |
XrlCmdError socket6_user_0_1_connect_event (
const string& sockid,
const IPv6& src_host,
const uint32_t& src_port,
const string& new_sockid,
bool& accept)
| socket6_user_0_1_connect_event |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Method invoked by target implementing socket6/0.1 when a connection request is received from an IPv6 source.
XrlCmdError socket6_user_0_1_error_event (
const string& sockid,
const string& error,
const bool& fatal)
| socket6_user_0_1_error_event |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Method invoked by target implementing socket6/0.1 when an error occurs.
Parameters:
sockid | the identifier associated with socket where error occurred. |
error | a textual description of the error. |
fatal | indication of whether socket is shutdown because of error. |
XrlCmdError socket6_user_0_1_close_event (
const string& sockid,
const string& reason)
| socket6_user_0_1_close_event |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Method invoked by target implementing socket6/0.1 when a socket is forcibly closed. This would typically happen when the address the socket is bound to is removed from an interface. This method is not called if the socket is closed through socket/0.1/close.