Public Types
Public Methods
Protected Methods
Protected Members
typedef Trie<A, DBRouteEntry> RouteTrie | RouteTrie |
typedef Peer<A> RipPeer | RipPeer |
bool update_route (const Net& net,
const Addr& nexthop,
uint32_t cost,
uint32_t tag,
RipPeer* peer)
| update_route |
Update Route Entry in database for specified route.
If the route does not exist or the values provided differ from the
existing route, then an update is placed in the update queue.
Parameters:
net | the network route being updated.
|
nexthop | the corresponding nexthop address.
|
cost | the corresponding metric value as received from the peer.
|
tag | the corresponding route tag.
|
peer | the peer proposing update.
|
Returns: true if an update occurs, false otherwise.
void dump_routes (vector<ConstDBRouteEntry>& routes)
| dump_routes |
Flatten routing table representation from Trie to Vector.
Parameters:
routes | vector where routes are to be appended.
|
bool resolve_and_reference (const Net& net, ConstDBRouteEntry& cdbe)
| resolve_and_reference |
Resolve a route and take a reference to it. While the reference
exists the route will not be deleted from memory, though may be
remove from table.
Parameters:
net | network to be resolved.
|
cdbe | reference pointer to route entry.
|
Returns: true if route resolves, false otherwise.
[protected]
[protected]
void expire_route (Route* r)
| expire_route |
[protected]
void set_expiry_timer (Route* r)
| set_expiry_timer |
[protected]
void delete_route (Route* r)
| delete_route |
[protected]
void set_deletion_timer (Route* r)
| set_deletion_timer |
[protected]
[protected]
RouteTrie _routes
| _routes |
[protected]
[protected]
Generated by: pavlin on possum.icir.org on Mon Jun 9 13:24:02 2003, using kdoc 2.0a54+XORP. |