\hypertarget{classNextHop}{
\section{NextHop Class Reference}
\label{classNextHop}\index{NextHop@{NextHop}}
}


Generic class for next-\/hop information.  




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

Inheritance diagram for NextHop:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classNextHop}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classNextHop_ae860ec5c77a075ab4c7d5154227e4c7e}{
\hyperlink{classNextHop_ae860ec5c77a075ab4c7d5154227e4c7e}{NextHop} ()}
\label{classNextHop_ae860ec5c77a075ab4c7d5154227e4c7e}

\begin{DoxyCompactList}\small\item\em Default constructor. \item\end{DoxyCompactList}\item 
\hypertarget{classNextHop_abd4b9006af11f59587b7cf729a79d7d9}{
virtual \hyperlink{classNextHop_abd4b9006af11f59587b7cf729a79d7d9}{$\sim$NextHop} ()}
\label{classNextHop_abd4b9006af11f59587b7cf729a79d7d9}

\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classNextHop_a09b483df131b2b06e31bb9fdf5cc07e6}{type} ()=0
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} nexthop type. \item\end{DoxyCompactList}\item 
virtual string \hyperlink{classNextHop_a49a648175c891cc151a3f35012f182ed}{str} () const =0
\begin{DoxyCompactList}\small\item\em Convert this nexthop from binary form to presentation format. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Generic class for next-\/hop information. \hyperlink{classNextHop}{NextHop} is \hyperlink{protocolthe-p}{the} generic class for holding information about routing next hops. NextHops can be of many types, including immediate neighbors, remote routers (with IBGP), discard or unreachable interfaces encapsulation endpoints, etc. \hyperlink{classNextHop}{NextHop} itself doesn't really do anything useful, except to provide a generic handle for \hyperlink{protocolthe-p}{the} specialized subclasses. 

\subsection{Member Function Documentation}
\hypertarget{classNextHop_a49a648175c891cc151a3f35012f182ed}{
\index{NextHop@{NextHop}!str@{str}}
\index{str@{str}!NextHop@{NextHop}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}virtual string NextHop::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classNextHop_a49a648175c891cc151a3f35012f182ed}


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}


Implemented in \hyperlink{classIPPeerNextHop_a61b6ac64b306000795d6c6d758d5f710}{IPPeerNextHop$<$ A $>$}, \hyperlink{classIPEncapsNextHop_ab6de2dcaa32a07a0f89bc78f9363a450}{IPEncapsNextHop$<$ A $>$}, \hyperlink{classIPExternalNextHop_a5994433a085ab81a189e5632ca44baec}{IPExternalNextHop$<$ A $>$}, \hyperlink{classDiscardNextHop_a982eb1d1d0d3f730ef28fa3ee9ad71e8}{DiscardNextHop}, and \hyperlink{classUnreachableNextHop_a05708e06ccee3b1bd0536c94ef32cda6}{UnreachableNextHop}.

\hypertarget{classNextHop_a09b483df131b2b06e31bb9fdf5cc07e6}{
\index{NextHop@{NextHop}!type@{type}}
\index{type@{type}!NextHop@{NextHop}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}virtual int NextHop::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classNextHop_a09b483df131b2b06e31bb9fdf5cc07e6}


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

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} nexthop. One of: 
\begin{DoxyPre}
   GENERIC\_NEXTHOP	0
   PEER\_NEXTHOP		1
   ENCAPS\_NEXTHOP	2
   EXTERNAL\_NEXTHOP	3
   DISCARD\_NEXTHOP	4
   UNREACHABLE\_NEXTHOP	5
\end{DoxyPre}
 
\end{DoxyReturn}


Implemented in \hyperlink{classIPPeerNextHop_a3ab13156956e18dc106e355657ba07fd}{IPPeerNextHop$<$ A $>$}, \hyperlink{classIPEncapsNextHop_a2c1622c6d803fae96d26cca76abe8cb3}{IPEncapsNextHop$<$ A $>$}, \hyperlink{classIPExternalNextHop_aa617281b93c6d70bb830d1c494628d0f}{IPExternalNextHop$<$ A $>$}, \hyperlink{classDiscardNextHop_ae29d01f3b8c88af8343d7141f393be5b}{DiscardNextHop}, and \hyperlink{classUnreachableNextHop_a9773c47df1c1cf831b032cf4d5a1b350}{UnreachableNextHop}.



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