\hypertarget{classNexthopRewriteFilter}{
\section{NexthopRewriteFilter$<$ A $>$ Class Template Reference}
\label{classNexthopRewriteFilter}\index{NexthopRewriteFilter@{NexthopRewriteFilter}}
}


\hyperlink{classBGPRouteFilter}{BGPRouteFilter} that changes \hyperlink{protocolthe-p}{the} nexthop attribute in a route.  




{\ttfamily \#include $<$route\_\-table\_\-filter.hh$>$}

Inheritance diagram for NexthopRewriteFilter$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classNexthopRewriteFilter}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classNexthopRewriteFilter_a4664ab4e4253371345a54a070299bb4c}{
{\bfseries NexthopRewriteFilter} (const A \&local\_\-nexthop, bool directly\_\-connected, const \hyperlink{classIPNet}{IPNet}$<$ A $>$ \&subnet)}
\label{classNexthopRewriteFilter_a4664ab4e4253371345a54a070299bb4c}

\item 
\hypertarget{classNexthopRewriteFilter_a9806bf99165c3cbadd5ada43c015ca5c}{
bool {\bfseries filter} (\hyperlink{classInternalMessage}{InternalMessage}$<$ A $>$ \&rtmsg) const }
\label{classNexthopRewriteFilter_a9806bf99165c3cbadd5ada43c015ca5c}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classNexthopRewriteFilter_a0905f81c35e1cc5fa84dc9001551b575}{
A {\bfseries \_\-local\_\-nexthop}}
\label{classNexthopRewriteFilter_a0905f81c35e1cc5fa84dc9001551b575}

\item 
\hypertarget{classNexthopRewriteFilter_a5d4a212c6b3cb3f0259f8915eb465f4f}{
bool {\bfseries \_\-directly\_\-connected}}
\label{classNexthopRewriteFilter_a5d4a212c6b3cb3f0259f8915eb465f4f}

\item 
\hypertarget{classNexthopRewriteFilter_a394be369db2b592cb254f7342e85bd41}{
\hyperlink{classIPNet}{IPNet}$<$ A $>$ {\bfseries \_\-subnet}}
\label{classNexthopRewriteFilter_a394be369db2b592cb254f7342e85bd41}

\end{DoxyCompactItemize}


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

\hyperlink{classBGPRouteFilter}{BGPRouteFilter} that changes \hyperlink{protocolthe-p}{the} nexthop attribute in a route. \hyperlink{classNexthopRewriteFilter}{NexthopRewriteFilter} is a \hyperlink{classBGPRouteFilter}{BGPRouteFilter} that changes \hyperlink{protocolthe-p}{the} nexthop attribute in a route passing though \hyperlink{protocolthe-p}{the} filter. A typicaly use is when passing a route to an EBGP peer, we change \hyperlink{protocolthe-p}{the} nexthop attribute to be our own IP address on \hyperlink{protocolthe-p}{the} appropriate interface to that peer. If \hyperlink{protocolthe-p}{the} EBGP peer is on \hyperlink{protocolthe-p}{the} \hyperlink{protocolthe-p}{the} same subnet as \hyperlink{protocolthe-p}{the} router and \hyperlink{protocolthe-p}{the} NEXT\_\-HOP is on \hyperlink{protocolthe-p}{the} same subnet \hyperlink{protocolthe-p}{the} NEXT\_\-HOP should not be rewritten. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/bgp/route\_\-table\_\-filter.hh\item 
/home/greearb/git/xorp.ct.github/xorp/bgp/route\_\-table\_\-filter.cc\end{DoxyCompactItemize}
