xorp

IPPeerNextHop< A > Class Template Reference

A nexthop that is an immediate neighbor. More...

#include <nexthop.hh>

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

List of all members.

Public Member Functions

 IPPeerNextHop (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 IPPeerNextHop< A >

A nexthop that is an immediate neighbor.

Specialization of IPNextHop for gateways that are the immediate neighbors of this router. Most IGP nexthops should be PeerNextHops.


Constructor & Destructor Documentation

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

Constructor from an address.

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

Member Function Documentation

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

Get the type of the nexthop.

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

Implements NextHop.


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