class RouteRedistributor

Store for redistributed routes. More...

Definition#include <redist.hh>
Template formRouteRedistributor<typename A>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Protected Members


Detailed Description

typedef A Addr

Addr

typedef IPNet<A> Net

Net

 RouteRedistributor (RouteDB<A>& route_db, const string& protocol, uint16_t tag)

RouteRedistributor

Constructor for RouteRedistributor

Parameters:
route_dbthe route database to add and expire routes in.
protocolname of protocol redistributor handles.
tagto be associated with redistributed routes.

 ~RouteRedistributor ()

~RouteRedistributor

bool  add_route (const Net& net, const Addr& nexthop, uint32_t cost = 0)

add_route

Add a route to be redistributed.

Parameters:
netnetwork described by route.
nexthoprouter capable of forwarding route.
costof route.

Returns: true on success, false if route could not be added to the RouteDatabase. Failure may occur if route already exists or a lower cost route exists.

bool  expire_route (const Net& net)

expire_route

Trigger route expiry.

Parameters:
networkdescribed by route.

Returns: true on success, false if route did not come from this RouteRedistributor instance.

const string&  protocol ()

protocol

[const]

Accessor.

Returns: protocol name.

uint16_t  tag ()

tag

[const]

Accessor.

Returns: tag routes are redistributed with.

RouteDB<A>& _route_db

_route_db

[protected]

string _protocol

_protocol

[protected]

uint16_t _tag

_tag

[protected]

RouteEntryOrigin<A>* _rt_origin

_rt_origin

[protected]


Generated by: pavlin on possum.icir.org on Thu Aug 28 12:52:20 2003, using kdoc 2.0a54+XORP.