\hypertarget{classIPPeerNextHop}{
\section{IPPeerNextHop$<$ A $>$ Class Template Reference}
\label{classIPPeerNextHop}\index{IPPeerNextHop@{IPPeerNextHop}}
}


A nexthop that is an immediate neighbor.  




{\ttfamily \#include $<$nexthop.hh$>$}

Inheritance diagram for IPPeerNextHop$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classIPPeerNextHop}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classIPPeerNextHop_ac8153bea80533796c36cef3dfeed246a}{IPPeerNextHop} (const A \&from\_\-addr)
\begin{DoxyCompactList}\small\item\em Constructor from an address. \item\end{DoxyCompactList}\item 
int \hyperlink{classIPPeerNextHop_a3ab13156956e18dc106e355657ba07fd}{type} ()
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} nexthop. \item\end{DoxyCompactList}\item 
string \hyperlink{classIPPeerNextHop_a61b6ac64b306000795d6c6d758d5f710}{str} () const 
\begin{DoxyCompactList}\small\item\em Convert this nexthop from binary form to presentation format. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class A$>$ class IPPeerNextHop$<$ A $>$}

A nexthop that is an immediate neighbor. Specialization of \hyperlink{classIPNextHop}{IPNextHop} for gateways that are \hyperlink{protocolthe-p}{the} immediate neighbors of this router. Most IGP nexthops should be PeerNextHops. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classIPPeerNextHop_ac8153bea80533796c36cef3dfeed246a}{
\index{IPPeerNextHop@{IPPeerNextHop}!IPPeerNextHop@{IPPeerNextHop}}
\index{IPPeerNextHop@{IPPeerNextHop}!IPPeerNextHop@{IPPeerNextHop}}
\subsubsection[{IPPeerNextHop}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class A $>$ {\bf IPPeerNextHop}$<$ A $>$::{\bf IPPeerNextHop} (
\begin{DoxyParamCaption}
\item[{const A \&}]{from\_\-addr}
\end{DoxyParamCaption}
)}}
\label{classIPPeerNextHop_ac8153bea80533796c36cef3dfeed246a}


Constructor from an address. 


\begin{DoxyParams}{Parameters}
{\em ipv4} & \hyperlink{classIPv4}{IPv4} or \hyperlink{classIPv6}{IPv6} or \hyperlink{classIPvX}{IPvX} address to initialize nexthop. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classIPPeerNextHop_a61b6ac64b306000795d6c6d758d5f710}{
\index{IPPeerNextHop@{IPPeerNextHop}!str@{str}}
\index{str@{str}!IPPeerNextHop@{IPPeerNextHop}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class A $>$ string {\bf IPPeerNextHop}$<$ A $>$::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classIPPeerNextHop_a61b6ac64b306000795d6c6d758d5f710}


Convert this nexthop from binary form to presentation format. 

\begin{DoxyReturn}{Returns}
C++ string with \hyperlink{protocolthe-p}{the} human-\/readable ASCII representation of \hyperlink{protocolthe-p}{the} nexthop. 
\end{DoxyReturn}


Implements \hyperlink{classNextHop_a49a648175c891cc151a3f35012f182ed}{NextHop}.

\hypertarget{classIPPeerNextHop_a3ab13156956e18dc106e355657ba07fd}{
\index{IPPeerNextHop@{IPPeerNextHop}!type@{type}}
\index{type@{type}!IPPeerNextHop@{IPPeerNextHop}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class A$>$ int {\bf IPPeerNextHop}$<$ A $>$::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classIPPeerNextHop_a3ab13156956e18dc106e355657ba07fd}


Get \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} nexthop. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} nexthop type. In this case, it is PEER\_\-NEXTHOP. 
\end{DoxyReturn}


Implements \hyperlink{classNextHop_a09b483df131b2b06e31bb9fdf5cc07e6}{NextHop}.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/libxorp/nexthop.hh\item 
/home/greearb/git/xorp.ct.github/xorp/libxorp/nexthop.cc\end{DoxyCompactItemize}
