\hypertarget{classIPEncapsNextHop}{
\section{IPEncapsNextHop$<$ A $>$ Class Template Reference}
\label{classIPEncapsNextHop}\index{IPEncapsNextHop@{IPEncapsNextHop}}
}


An IP nexthop that is an encapsulation tunnel.  




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

Inheritance diagram for IPEncapsNextHop$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classIPEncapsNextHop}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classIPEncapsNextHop_a9633fe41763633e118b106290b512a1c}{IPEncapsNextHop} (const A \&from\_\-addr)
\begin{DoxyCompactList}\small\item\em Constructor from an address. \item\end{DoxyCompactList}\item 
int \hyperlink{classIPEncapsNextHop_a2c1622c6d803fae96d26cca76abe8cb3}{type} ()
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} nexthop. \item\end{DoxyCompactList}\item 
string \hyperlink{classIPEncapsNextHop_ab6de2dcaa32a07a0f89bc78f9363a450}{str} () const 
\begin{DoxyCompactList}\small\item\em Convert this nexthop from binary form to presentation format. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIPEncapsNextHop_a90af8d182e9dcd5bdc77495fc889eff2}{
\hyperlink{classIPPeerNextHop}{IPPeerNextHop}$<$ A $>$ $\ast$ {\bfseries \_\-cached\_\-peer}}
\label{classIPEncapsNextHop_a90af8d182e9dcd5bdc77495fc889eff2}

\end{DoxyCompactItemize}


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

An IP nexthop that is an encapsulation tunnel. Specialization of \hyperlink{classIPNextHop}{IPNextHop} for gateways that are encapsulation tunnels. 

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


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{classIPEncapsNextHop_ab6de2dcaa32a07a0f89bc78f9363a450}{
\index{IPEncapsNextHop@{IPEncapsNextHop}!str@{str}}
\index{str@{str}!IPEncapsNextHop@{IPEncapsNextHop}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class A $>$ string {\bf IPEncapsNextHop}$<$ A $>$::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classIPEncapsNextHop_ab6de2dcaa32a07a0f89bc78f9363a450}


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


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