xorp

IPEncapsNextHop< A > Class Template Reference

An IP nexthop that is an encapsulation tunnel. More...

#include <nexthop.hh>

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

List of all members.

Public Member Functions

 IPEncapsNextHop (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.

Private Attributes

IPPeerNextHop< A > * _cached_peer

Detailed Description

template<class A>
class IPEncapsNextHop< A >

An IP nexthop that is an encapsulation tunnel.

Specialization of IPNextHop for gateways that are encapsulation tunnels.


Constructor & Destructor Documentation

template<class A >
IPEncapsNextHop< A >::IPEncapsNextHop ( 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 IPEncapsNextHop< 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 IPEncapsNextHop< A >::type ( ) [inline, virtual]

Get the type of the nexthop.

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

Implements NextHop.


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