\hypertarget{classDiscardNextHop}{
\section{DiscardNextHop Class Reference}
\label{classDiscardNextHop}\index{DiscardNextHop@{DiscardNextHop}}
}


A nexthop that is \hyperlink{protocolthe-p}{the} discard interface.  




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

Inheritance diagram for DiscardNextHop:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classDiscardNextHop}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classDiscardNextHop_a36c7427f842463c7a1f2b7d491bb870c}{
\hyperlink{classDiscardNextHop_a36c7427f842463c7a1f2b7d491bb870c}{DiscardNextHop} ()}
\label{classDiscardNextHop_a36c7427f842463c7a1f2b7d491bb870c}

\begin{DoxyCompactList}\small\item\em Default constructor. \item\end{DoxyCompactList}\item 
int \hyperlink{classDiscardNextHop_ae29d01f3b8c88af8343d7141f393be5b}{type} ()
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} nexthop. \item\end{DoxyCompactList}\item 
string \hyperlink{classDiscardNextHop_a982eb1d1d0d3f730ef28fa3ee9ad71e8}{str} () const 
\begin{DoxyCompactList}\small\item\em Convert this nexthop from binary form to presentation format. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A nexthop that is \hyperlink{protocolthe-p}{the} discard interface. Specialization of \hyperlink{classNextHop}{NextHop} for blackholing traffic efficiently. 

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


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


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