This is the base class from which RIB routing table entries are derived. It's not useful by itself.
| RouteEntry (RibVif* vif, NextHop* nexthop, const Protocol& protocol,
Constructor for a route entry.
|vif||the Virtual Interface on which packets matching this routing table entry should be forwarded.|
|nexthop||the NextHop router to which packets matching this entry should be forwarded.|
|protocol||the routing protocol that originated this route.|
|metric||the routing protocol metric for this route.|
| ~RouteEntry ()
|RibVif* vif ()
Get the VIF.
Returns: the Virtual Interface on which packets matching this routing table entry should be forwarded.
|NextHop* nexthop ()
Get the NextHop router.
Returns: the NextHop router to which packets matching this entry should be forwarded.
|void set_nexthop (NextHop* v)
Set the NextHop router.
|v||the NextHop router to be set on this route.|
|uint16_t admin_distance ()
Get the Administrative Distance.
Returns: the Administrative Distance associated with this route. Admin Distance is a parameter typically assigned on a per-routing-protocol basis. When two routes for the same subnet come from different routing protocols, the one with the lower admin distance is prefered.
|void set_admin_distance (uint16_t ad)
Set the Administrative Distance.
|ad||the administrative distance to apply to this route.|
|const Protocol& protocol ()
Get the routing protocol.
Returns: the routing protocol that originated this route.
See also: Protocol.
| string str ()
[const pure virtual]
Display the route for debugging purposes.
|void set_metric (uint32_t metric)
Set the routing protocol metric on this route.
|metric||the routing protocol metric to be set on this route.|
|uint32_t metric ()
Get the routing protocol metric.
Returns: the routing protocol metric for this route.
|const Protocol& _protocol|