\hypertarget{classSimpleASFilter}{
\section{SimpleASFilter$<$ A $>$ Class Template Reference}
\label{classSimpleASFilter}\index{SimpleASFilter@{SimpleASFilter}}
}


\hyperlink{classBGPRouteFilter}{BGPRouteFilter} that drops routes that have a particular AS in their AS path.  




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

Inheritance diagram for SimpleASFilter$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classSimpleASFilter}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSimpleASFilter_a21bcdc685e8d88c7b58f92d59565e393}{
{\bfseries SimpleASFilter} (const \hyperlink{classAsNum}{AsNum} \&as\_\-num)}
\label{classSimpleASFilter_a21bcdc685e8d88c7b58f92d59565e393}

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

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSimpleASFilter_a21683226190fecc83d9148211e9f0f2e}{
\hyperlink{classAsNum}{AsNum} {\bfseries \_\-as\_\-num}}
\label{classSimpleASFilter_a21683226190fecc83d9148211e9f0f2e}

\end{DoxyCompactItemize}


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

\hyperlink{classBGPRouteFilter}{BGPRouteFilter} that drops routes that have a particular AS in their AS path. \hyperlink{classSimpleASFilter}{SimpleASFilter} is a \hyperlink{classBGPRouteFilter}{BGPRouteFilter} that drops routes that have a particular AS in their AS path. This is typically used in loop prevention, where an inbound filter from an EBGP peer drops routes that contain our own AS number

This works on both regular EBGP and CONFEDERATION EBGP sessions 

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}
