|
|
typedef RouteDB<A> RouteDatabase | RouteDatabase |
typedef PortManagerBase<A> PortManager | PortManager |
System (EventLoop& e)
| System |
~System ()
| ~System |
EventLoop& eventloop ()
| eventloop |
Get EventLoop instance that each object in system should use.
const EventLoop& eventloop ()
| eventloop |
[const]
Get EventLoop instance that each object in RIP system should use.
RouteDatabase& route_db ()
| route_db |
Get the Route Database that each object in the RIP system should use.
const RouteDatabase& route_db ()
| route_db |
[const]
Get the Route Database that each object in the RIP system should use.
bool set_port_manager (PortManager* pm)
| set_port_manager |
Set the port manager object associated with the system.
Parameters:
pointer | to PortManager to be used. |
Returns: true if port manager has not previously been set and pointer is not null, false otherwise.
PortManager* port_manager ()
| port_manager |
Get pointer to PortManager that the RIP system is using.
const PortManager* port_manager ()
| port_manager |
[const]
Get pointer PortManager that the RIP system is using.
void configure_filter (const uint32_t& filter, const string& conf)
| configure_filter |
Configure a policy filter.
Parameters:
filter | id of filter to configure. |
conf | configuration of filter. |
void reset_filter (const uint32_t& filter)
| reset_filter |
Reset a policy filter.
Parameters:
filter | id of filter to reset. |
void push_routes ()
| push_routes |
Push routes through policy filters for re-filtering.
PolicyFilters& policy_filters ()
| policy_filters |
Returns: reference to global policy filters.
System (const System&)
| System |
[protected]
System& operator= (const System&)
| operator= |
[protected]
EventLoop& _e | _e |
[protected]
PolicyFilters _policy_filters | _policy_filters |
[protected]
RouteDatabase _rtdb | _rtdb |
[protected]
PortManager* _pm | _pm |
[protected]
template <typename A>
bool
set_port_manager (PortManager* pm)
| set_port_manager |
[protected]
template <typename A>
~System ()
| ~System |
[protected]