\hypertarget{classIPExternalNextHop}{
\section{IPExternalNextHop$<$ A $>$ Class Template Reference}
\label{classIPExternalNextHop}\index{IPExternalNextHop@{IPExternalNextHop}}
}


An IP nexthop that is not an intermediate neighbor.  




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

Inheritance diagram for IPExternalNextHop$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classIPExternalNextHop}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classIPExternalNextHop_a597c47904aec8523c0867f0c49f8b08e}{IPExternalNextHop} (const A \&from\_\-addr)
\begin{DoxyCompactList}\small\item\em Constructor from an address. \item\end{DoxyCompactList}\item 
int \hyperlink{classIPExternalNextHop_aa617281b93c6d70bb830d1c494628d0f}{type} ()
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} nexthop. \item\end{DoxyCompactList}\item 
string \hyperlink{classIPExternalNextHop_a5994433a085ab81a189e5632ca44baec}{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 IPExternalNextHop$<$ A $>$}

An IP nexthop that is not an intermediate neighbor. The nexthop that is a regular router's address, but \hyperlink{protocolthe-p}{the} router is not one of our immediate neighbors.

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

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


Constructor from an address. 


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


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


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{classIPExternalNextHop_aa617281b93c6d70bb830d1c494628d0f}{
\index{IPExternalNextHop@{IPExternalNextHop}!type@{type}}
\index{type@{type}!IPExternalNextHop@{IPExternalNextHop}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class A$>$ int {\bf IPExternalNextHop}$<$ A $>$::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classIPExternalNextHop_aa617281b93c6d70bb830d1c494628d0f}


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 EXTERNAL\_\-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}
