class IPRouteEntry

Routing Table Entry. More...

Definition#include <route.hh>
Template formIPRouteEntry<class A>
InheritsRouteEntry [public ]
Inherited byResolvedIPRouteEntry
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

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 ()

IPRouteEntry

Default IPRouteEntry constructor

 IPRouteEntry (const IPNet<A> &net, Vif *vif, NextHop *nh, Protocol *proto, uint16_t metric)

IPRouteEntry

Constructor for IPRouteEntry

Parameters:
netthe Subnet (address and mask) of the routing table entry.
vifthe Virtual Interface on which packets matching this routing table entry should be forwarded.
nhthe NextHop router to which packets matching this entry should be forwarded.
protothe routing protocol that originated this route.
metricthe routing protocol metric for this route.

 ~IPRouteEntry ()

~IPRouteEntry

Destructor for Routing Table Entry

inline bool  directly_connected ()

directly_connected

[const]

Indicates if the route is for directly connected subnet.

Returns: true is the subnet is directly connected to this router, otherwise false

inline const IPNet<A> & net ()

net

[const]

Get the route entry's subnet

Returns: the route entry's subnet

inline size_t  prefix_len ()

prefix_len

[const]

Get the prefix length of the route entry's subnet

Returns: the prefix length (in bits) of the route entry's subnet

string  str ()

str

[const]

Get the route entry as a string for debugging purposes.

Returns: a human readable representation of the route entry

Reimplemented from RouteEntry.

IPNet<A> _net

_net

[protected]


Generated by: pavlin on possum.icir.org on Wed Dec 11 16:51:00 2002, using kdoc 2.0a54+XORP.