class RouteRange

Stores a Route and bounds on the validity of the route. More...

 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Detailed Description

The RouteRange class is used to hold an annotated routing entry. It is used when the RegisterTable is registering interest in routing information associated with a specific address. It holds an IP address, the route that would be used to route that address, and the top and bottom addresses of the route range that includes that address for which this route applies without being overlayed by a more specific route. For example:

Suppose an OriginTable holds the routes and The address we're interested in is Then if we ask this OriginTable for the RouteRange for, we get:

address: route: the route for top: bottom:

I.e., the route for is, and this answer is also valid for addresses in the range to inclusive.

 RouteRange (const A& req_addr, const IPRouteEntry<A>* route, const A& top, const A& bottom)


const A&  top ()



const A&  bottom ()



const IPRouteEntry<A>*  route ()



const IPNet<A>&  net ()



void  merge (const RouteRange* his_rr)


Merge this entry with another entry.

Replace route with the entry from rr if it is better, (XXX why ?) shrink the intervals if the other one is smaller.


his_rrthe entry to merge with.
IPNet<A>  minimal_subnet ()



Generated by: pavlin on on Wed Jan 7 19:11:09 2009, using kdoc 2.0a54+XORP.