xorp

IPExternalNextHop< A > Class Template Reference

An IP nexthop that is not an intermediate neighbor. More...

#include <nexthop.hh>

Inheritance diagram for IPExternalNextHop< A >:
IPNextHop< A > NextHop

List of all members.

Public Member Functions

 IPExternalNextHop (const A &from_addr)
 Constructor from an address.
int type ()
 Get the type of the nexthop.
string str () const
 Convert this nexthop from binary form to presentation format.

Detailed Description

template<class A>
class IPExternalNextHop< A >

An IP nexthop that is not an intermediate neighbor.

The nexthop that is a regular router's address, but the router is not one of our immediate neighbors.

Specialization of IPNextHop for a regular router's address, but the router is not one of our immediate neighbors. The normal case when this will happen is with IBGP, where the nexthop is either the exit router from the AS, or the entry router to the next AS.


Constructor & Destructor Documentation

template<class A >
IPExternalNextHop< A >::IPExternalNextHop ( const A &  from_addr)

Constructor from an address.

Parameters:
from_addrIPv4 or IPv6 or IPvX address to initialize nexthop.

Member Function Documentation

template<class A >
string IPExternalNextHop< A >::str ( ) const [virtual]

Convert this nexthop from binary form to presentation format.

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

Implements NextHop.

template<class A>
int IPExternalNextHop< A >::type ( ) [inline, virtual]

Get the type of the nexthop.

Returns:
the nexthop type. In this case, it is EXTERNAL_NEXTHOP.

Implements NextHop.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations