\hypertarget{structis__port__for}{
\section{is\_\-port\_\-for$<$ A $>$ Struct Template Reference}
\label{structis__port__for}\index{is\_\-port\_\-for@{is\_\-port\_\-for}}
}


Functor to test whether a particular OLSR port is appropriate for packet arriving on socket.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structis__port__for_a42ae80a986f995b47a1ad239dca76820}{
{\bfseries is\_\-port\_\-for} (const string $\ast$sockid, const string $\ast$ifname, const string $\ast$vifname, const \hyperlink{classIPv4}{IPv4} $\ast$addr, \hyperlink{classIfMgrXrlMirror}{IfMgrXrlMirror} $\ast$im)}
\label{structis__port__for_a42ae80a986f995b47a1ad239dca76820}

\item 
\hypertarget{structis__port__for_af59e04238e19ec937f37f153a7762999}{
bool {\bfseries operator()} (\hyperlink{classXrlPort}{XrlPort} $\ast$\&xp)}
\label{structis__port__for_af59e04238e19ec937f37f153a7762999}

\item 
\hypertarget{structis__port__for_a1f7c6132499df101c242c98e37115622}{
{\bfseries is\_\-port\_\-for} (const string $\ast$sockid, const string $\ast$ifname, const string $\ast$vifname, const A $\ast$addr, \hyperlink{classIfMgrXrlMirror}{IfMgrXrlMirror} $\ast$im)}
\label{structis__port__for_a1f7c6132499df101c242c98e37115622}

\item 
\hypertarget{structis__port__for_a2ff8defffa66c9382a9a286e6db37b43}{
bool {\bfseries operator()} (\hyperlink{classPort}{Port}$<$ A $>$ $\ast$\&p)}
\label{structis__port__for_a2ff8defffa66c9382a9a286e6db37b43}

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structis__port__for_a941be45b527cd67a21f10b55a37df8f7}{
bool {\bfseries link\_\-addr\_\-valid} () const }
\label{structis__port__for_a941be45b527cd67a21f10b55a37df8f7}

\item 
\hypertarget{structis__port__for_a941be45b527cd67a21f10b55a37df8f7}{
bool {\bfseries link\_\-addr\_\-valid} () const }
\label{structis__port__for_a941be45b527cd67a21f10b55a37df8f7}

\item 
\hypertarget{structis__port__for_a7f084b080f8b24def63af5d584a63522}{
{\footnotesize template$<$$>$ }\\bool {\bfseries link\_\-addr\_\-valid} () const}
\label{structis__port__for_a7f084b080f8b24def63af5d584a63522}

\item 
\hypertarget{structis__port__for_a86823cf9a9217808578a597dab7462f2}{
{\footnotesize template$<$$>$ }\\bool {\bfseries link\_\-addr\_\-valid} () const}
\label{structis__port__for_a86823cf9a9217808578a597dab7462f2}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structis__port__for_a530c087a08ff3410ad089cd84b230a32}{
const string $\ast$ {\bfseries \_\-psid}}
\label{structis__port__for_a530c087a08ff3410ad089cd84b230a32}

\item 
\hypertarget{structis__port__for_a23efb73402856e337f9a81e26dfe0ce9}{
const string $\ast$ {\bfseries \_\-ifname}}
\label{structis__port__for_a23efb73402856e337f9a81e26dfe0ce9}

\item 
\hypertarget{structis__port__for_a2176f9e23df03f6fd9099e3053a7768c}{
const string $\ast$ {\bfseries \_\-vifname}}
\label{structis__port__for_a2176f9e23df03f6fd9099e3053a7768c}

\item 
\hypertarget{structis__port__for_a68acc4366521eb3685056a859691e5e9}{
const \hyperlink{classIPv4}{IPv4} $\ast$ {\bfseries \_\-pa}}
\label{structis__port__for_a68acc4366521eb3685056a859691e5e9}

\item 
\hypertarget{structis__port__for_a6efa29fb4db2542a9f06e4e7b7524f83}{
\hyperlink{classIfMgrXrlMirror}{IfMgrXrlMirror} $\ast$ {\bfseries \_\-pim}}
\label{structis__port__for_a6efa29fb4db2542a9f06e4e7b7524f83}

\item 
\hypertarget{structis__port__for_ab8b5466349baa9e9a81e985f5845cb07}{
const A $\ast$ {\bfseries \_\-pa}}
\label{structis__port__for_ab8b5466349baa9e9a81e985f5845cb07}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename A$>$ struct is\_\-port\_\-for$<$ A $>$}

Functor to test whether a particular OLSR port is appropriate for packet arriving on socket. Unary function object to test whether a particular RIP port is appropriate for packet arriving on socket.

NB At a future date we might want to track socket id to \hyperlink{classXrlPortIO}{XrlPortIO} mappings. This would be more efficient. 

The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/xrl\_\-io.cc\item 
/home/greearb/git/xorp.ct.github/xorp/rip/xrl\_\-port\_\-manager.cc\end{DoxyCompactItemize}
