class NextHop

Generic class for next-hop information. More...

Contains pure virtuals
Definition#include <nexthop.hh>
Inherited byDiscardNextHop, IPEncapsNextHop, IPExternalNextHop, IPNextHop, IPPeerNextHop
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

NextHop is the generic class for holding information about routing next hops. NextHops can be of many types, including immediate neighbors, remote routers (with IBGP), discard interfaces, encapsulation endpoints, etc. NextHop itself doesn't really do anything useful, except to provide a generic handle for the specialized subclasses.

 NextHop ()

NextHop

Default constructor

 ~NextHop ()

~NextHop

[virtual]

Destructor

int  type ()

type

[pure virtual]

Get the nexthop type.


   GENERIC_NEXTHOP	0
   PEER_NEXTHOP		1
   ENCAPS_NEXTHOP	2
   EXTERNAL_NEXTHOP	3
   DISCARD_NEXTHOP	4

Returns: the type of the nexthop. One of:

string  str ()

str

[const pure virtual]

Convert this nexthop from binary form to presentation format.

Returns: C++ string with the human-readable ASCII representation of the nexthop.


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