\hypertarget{classNexthopPeerCheckFilter}{
\section{NexthopPeerCheckFilter$<$ A $>$ Class Template Reference}
\label{classNexthopPeerCheckFilter}\index{NexthopPeerCheckFilter@{NexthopPeerCheckFilter}}
}


\hyperlink{classBGPRouteFilter}{BGPRouteFilter} rewrites \hyperlink{protocolthe-p}{the} nexthop if it matches \hyperlink{protocolthe-p}{the} peers address.  




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

Inheritance diagram for NexthopPeerCheckFilter$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classNexthopPeerCheckFilter}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classNexthopPeerCheckFilter_abe5f49c7870f1ac031553a8877615fc6}{
{\bfseries NexthopPeerCheckFilter} (const A \&local\_\-nexthop, const A \&peer\_\-address)}
\label{classNexthopPeerCheckFilter_abe5f49c7870f1ac031553a8877615fc6}

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

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

\item 
\hypertarget{classNexthopPeerCheckFilter_a4f6db72181652667f3d945de6dfa6ec3}{
A {\bfseries \_\-peer\_\-address}}
\label{classNexthopPeerCheckFilter_a4f6db72181652667f3d945de6dfa6ec3}

\end{DoxyCompactItemize}


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

\hyperlink{classBGPRouteFilter}{BGPRouteFilter} rewrites \hyperlink{protocolthe-p}{the} nexthop if it matches \hyperlink{protocolthe-p}{the} peers address. \hyperlink{classNexthopPeerCheckFilter}{NexthopPeerCheckFilter} is a \hyperlink{classBGPRouteFilter}{BGPRouteFilter} that checks that \hyperlink{protocolthe-p}{the} nexthop is not equal to \hyperlink{protocolthe-p}{the} peers address. If \hyperlink{protocolthe-p}{the} nexthop is equal to \hyperlink{protocolthe-p}{the} peers address then \hyperlink{protocolthe-p}{the} nexthop is rewritten to \hyperlink{protocolthe-p}{the} routers nexthop address. 

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}
