|
xorp
|
#include <route.hh>
Public Member Functions | |
| IPRouteEntry (const IPNet< A > &net, RibVif *vif, NextHop *nexthop, const Protocol &protocol, uint32_t metric) | |
| Constructor for IPRouteEntry. | |
| IPRouteEntry (const IPNet< A > &net, RibVif *vif, NextHop *nexthop, const Protocol &protocol, uint32_t metric, const PolicyTags &policytags) | |
| Constructor for IPRouteEntry. | |
| ~IPRouteEntry () | |
| Destructor for Routing Table Entry. | |
| const IPNet< A > & | net () const |
| Get the route entry's subnet addres. | |
| size_t | prefix_len () const |
| Get the prefix length of the route entry's subnet address. | |
| const A & | nexthop_addr () const |
| Get the route entry's next-hop router address. | |
| PolicyTags & | policytags () |
| Get the policy-tags for this route. | |
| const PolicyTags & | policytags () const |
| string | str () const |
| Get the route entry as a string for debugging purposes. | |
Protected Attributes | |
| IPNet< A > | _net |
| PolicyTags | _policytags |
Routing Table Entry.
This class stores a regular RIB routing table entry for either an IPv4 or an IPv6 route. It is a template class, where A is either a the IPv4 class or the IPv6 class.
| IPRouteEntry< A >::IPRouteEntry | ( | const IPNet< A > & | net, |
| RibVif * | vif, | ||
| NextHop * | nexthop, | ||
| const Protocol & | protocol, | ||
| uint32_t | metric | ||
| ) | [inline] |
Constructor for IPRouteEntry.
| net | the Subnet (address and mask) of the routing table 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. |
| IPRouteEntry< A >::IPRouteEntry | ( | const IPNet< A > & | net, |
| RibVif * | vif, | ||
| NextHop * | nexthop, | ||
| const Protocol & | protocol, | ||
| uint32_t | metric, | ||
| const PolicyTags & | policytags | ||
| ) | [inline] |
Constructor for IPRouteEntry.
| net | the Subnet (address and mask) of the routing table 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. |
| policytags | the policy-tags for this route. |
| const IPNet<A>& IPRouteEntry< A >::net | ( | ) | const [inline] |
Get the route entry's subnet addres.
Reimplemented from RouteEntry< A >.
| const A& IPRouteEntry< A >::nexthop_addr | ( | ) | const [inline] |
Get the route entry's next-hop router address.
| const PolicyTags& IPRouteEntry< A >::policytags | ( | ) | const [inline] |
Reimplemented from RouteEntry< A >.
| PolicyTags& IPRouteEntry< A >::policytags | ( | ) | [inline] |
Get the policy-tags for this route.
Reimplemented from RouteEntry< A >.
| size_t IPRouteEntry< A >::prefix_len | ( | ) | const [inline] |
| string IPRouteEntry< A >::str | ( | ) | const [virtual] |
Get the route entry as a string for debugging purposes.
Implements RouteEntry< A >.