\hypertarget{classFirewallSetNetfilter}{
\section{FirewallSetNetfilter Class Reference}
\label{classFirewallSetNetfilter}\index{FirewallSetNetfilter@{FirewallSetNetfilter}}
}
Inheritance diagram for FirewallSetNetfilter:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classFirewallSetNetfilter}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classFirewallSetNetfilter_a1db86c89cef45bc5c36dfbcecefb537d}{
typedef map$<$ uint32\_\-t, \hyperlink{classFirewallEntry}{FirewallEntry} $>$ {\bfseries FirewallTrie}}
\label{classFirewallSetNetfilter_a1db86c89cef45bc5c36dfbcecefb537d}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classFirewallSetNetfilter_a2c8e2f2f2df9b29ddfc1a4f3ce70faad}{FirewallSetNetfilter} (\hyperlink{classFeaDataPlaneManager}{FeaDataPlaneManager} \&fea\_\-data\_\-plane\_\-manager)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
\hypertarget{classFirewallSetNetfilter_ae896712db576251c13a1d31e593c902a}{
virtual \hyperlink{classFirewallSetNetfilter_ae896712db576251c13a1d31e593c902a}{$\sim$FirewallSetNetfilter} ()}
\label{classFirewallSetNetfilter_ae896712db576251c13a1d31e593c902a}

\begin{DoxyCompactList}\small\item\em Virtual destructor. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classFirewallSetNetfilter_afa334566f44a7902f269aac6f704aa32}{start} (string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Start operation. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classFirewallSetNetfilter_a0398464c8d09d674c9b4ab186c5e49b6}{stop} (string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Stop operation. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classFirewallSetNetfilter_aa9373823c8c836a7101be1c86bde5b37}{update\_\-entries} (const list$<$ \hyperlink{classFirewallEntry}{FirewallEntry} $>$ \&added\_\-entries, const list$<$ \hyperlink{classFirewallEntry}{FirewallEntry} $>$ \&replaced\_\-entries, const list$<$ \hyperlink{classFirewallEntry}{FirewallEntry} $>$ \&deleted\_\-entries, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Update \hyperlink{protocolthe-p}{the} firewall entries by pushing them into \hyperlink{protocolthe-p}{the} underlying system. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classFirewallSetNetfilter_a8f757d45490c6418a778b75401250a04}{set\_\-table4} (const list$<$ \hyperlink{classFirewallEntry}{FirewallEntry} $>$ \&firewall\_\-entry\_\-list, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} \hyperlink{classIPv4}{IPv4} firewall table. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classFirewallSetNetfilter_aff3fb43385cad3a812f3a5c53fe2fd8e}{delete\_\-all\_\-entries4} (string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Delete all entries in \hyperlink{protocolthe-p}{the} \hyperlink{classIPv4}{IPv4} firewall table. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classFirewallSetNetfilter_a87ac5ae6e5eec2c0db2c3ea0d3f6114c}{set\_\-table6} (const list$<$ \hyperlink{classFirewallEntry}{FirewallEntry} $>$ \&firewall\_\-entry\_\-list, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} \hyperlink{classIPv6}{IPv6} firewall table. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classFirewallSetNetfilter_aee6b3fe57eb24cce053d9844dbee3abd}{delete\_\-all\_\-entries6} (string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Delete all entries in \hyperlink{protocolthe-p}{the} \hyperlink{classIPv6}{IPv6} firewall table. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual int \hyperlink{classFirewallSetNetfilter_a86c0a91e0d4468cae26d8f145cb47837}{add\_\-entry} (const \hyperlink{classFirewallEntry}{FirewallEntry} \&firewall\_\-entry, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Add a single firewall entry. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classFirewallSetNetfilter_af382ee9f47b3dc84a7168eb8fe208f99}{replace\_\-entry} (const \hyperlink{classFirewallEntry}{FirewallEntry} \&firewall\_\-entry, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Replace a single firewall entry. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classFirewallSetNetfilter_ad0f2b4e470553f98a8a9e2735caec466}{delete\_\-entry} (const \hyperlink{classFirewallEntry}{FirewallEntry} \&firewall\_\-entry, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Delete a single firewall entry. \item\end{DoxyCompactList}\item 
int \hyperlink{classFirewallSetNetfilter_aa3ac8f1665f45556abed1fb2dfc1f387}{encode\_\-chain4} (const string \&chain\_\-name, vector$<$ uint8\_\-t $>$ \&buffer, size\_\-t \&next\_\-data\_\-index, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Encode a single \hyperlink{classIPv4}{IPv4} firewall chain. \item\end{DoxyCompactList}\item 
int \hyperlink{classFirewallSetNetfilter_a1e384b1acfb3b454b8d2442ebbe7c054}{encode\_\-chain6} (const string \&chain\_\-name, vector$<$ uint8\_\-t $>$ \&buffer, size\_\-t \&next\_\-data\_\-index, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Encode a single \hyperlink{classIPv6}{IPv6} firewall chain. \item\end{DoxyCompactList}\item 
int \hyperlink{classFirewallSetNetfilter_ad8370ca2080ffc12bb16c5ee22750a8a}{encode\_\-entry4} (const \hyperlink{classFirewallEntry}{FirewallEntry} \&firewall\_\-entry, vector$<$ uint8\_\-t $>$ \&buffer, size\_\-t \&next\_\-data\_\-index, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Encode a single \hyperlink{classIPv4}{IPv4} firewall entry. \item\end{DoxyCompactList}\item 
int \hyperlink{classFirewallSetNetfilter_abbd61d0c6c8e260095ece32b334bf4d8}{encode\_\-entry6} (const \hyperlink{classFirewallEntry}{FirewallEntry} \&firewall\_\-entry, vector$<$ uint8\_\-t $>$ \&buffer, size\_\-t \&next\_\-data\_\-index, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Encode a single \hyperlink{classIPv6}{IPv6} firewall entry. \item\end{DoxyCompactList}\item 
int \hyperlink{classFirewallSetNetfilter_a052788f0d7ea9e4829dcd6ca7bcfc880}{push\_\-entries4} (string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em \hyperlink{classPush}{Push} all locally stored \hyperlink{classIPv4}{IPv4} firewall entries. \item\end{DoxyCompactList}\item 
int \hyperlink{classFirewallSetNetfilter_ae16333947379c6a2632fe061319c12e6}{push\_\-entries6} (string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em \hyperlink{classPush}{Push} all locally stored \hyperlink{classIPv6}{IPv6} firewall entries. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classFirewallSetNetfilter_a0a593250c3ea2fca618c2053ce55283b}{
int {\bfseries \_\-s4}}
\label{classFirewallSetNetfilter_a0a593250c3ea2fca618c2053ce55283b}

\item 
\hypertarget{classFirewallSetNetfilter_a744ef3ee42d7acd2b79560b4fef81181}{
int {\bfseries \_\-s6}}
\label{classFirewallSetNetfilter_a744ef3ee42d7acd2b79560b4fef81181}

\item 
\hypertarget{classFirewallSetNetfilter_a231193c4e24b4486574ce598bbdd0031}{
FirewallTrie {\bfseries \_\-firewall\_\-entries4}}
\label{classFirewallSetNetfilter_a231193c4e24b4486574ce598bbdd0031}

\item 
\hypertarget{classFirewallSetNetfilter_a826fd5d781674b8f5f823653921e7507}{
FirewallTrie {\bfseries \_\-firewall\_\-entries6}}
\label{classFirewallSetNetfilter_a826fd5d781674b8f5f823653921e7507}

\item 
\hypertarget{classFirewallSetNetfilter_a5e057b9e53070cbb6a0b1d1530f9423c}{
size\_\-t {\bfseries \_\-num\_\-entries}}
\label{classFirewallSetNetfilter_a5e057b9e53070cbb6a0b1d1530f9423c}

\item 
\hypertarget{classFirewallSetNetfilter_a5662f07207e5393f89ff90ee44846e4d}{
size\_\-t {\bfseries \_\-head\_\-offset}}
\label{classFirewallSetNetfilter_a5662f07207e5393f89ff90ee44846e4d}

\item 
\hypertarget{classFirewallSetNetfilter_a759917147f7a0ef613ec8c7e47d86419}{
size\_\-t {\bfseries \_\-foot\_\-offset}}
\label{classFirewallSetNetfilter_a759917147f7a0ef613ec8c7e47d86419}

\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classFirewallSetNetfilter_ace1f894ac9a21c4d8827bbe7b4f80380}{
static const string {\bfseries \_\-netfilter\_\-table\_\-name}}
\label{classFirewallSetNetfilter_ace1f894ac9a21c4d8827bbe7b4f80380}

\item 
\hypertarget{classFirewallSetNetfilter_aa09f1a30d2147d7a877df8a636834cf8}{
static const string {\bfseries \_\-netfilter\_\-match\_\-tcp}}
\label{classFirewallSetNetfilter_aa09f1a30d2147d7a877df8a636834cf8}

\item 
\hypertarget{classFirewallSetNetfilter_af439667cbcbc415649fbd6bfc72f036f}{
static const string {\bfseries \_\-netfilter\_\-match\_\-udp}}
\label{classFirewallSetNetfilter_af439667cbcbc415649fbd6bfc72f036f}

\item 
\hypertarget{classFirewallSetNetfilter_a0b6cd0d0c9e22521468c73d1474fa5bf}{
static const string {\bfseries \_\-netfilter\_\-chain\_\-input}}
\label{classFirewallSetNetfilter_a0b6cd0d0c9e22521468c73d1474fa5bf}

\item 
\hypertarget{classFirewallSetNetfilter_a0b0fcde6a5e0d23123cd93cfd3d39189}{
static const string {\bfseries \_\-netfilter\_\-chain\_\-forward}}
\label{classFirewallSetNetfilter_a0b0fcde6a5e0d23123cd93cfd3d39189}

\item 
\hypertarget{classFirewallSetNetfilter_ae94185d0fab0328b869418a39dbb3090}{
static const string {\bfseries \_\-netfilter\_\-chain\_\-output}}
\label{classFirewallSetNetfilter_ae94185d0fab0328b869418a39dbb3090}

\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classFirewallSetNetfilter_a2c8e2f2f2df9b29ddfc1a4f3ce70faad}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{FirewallSetNetfilter}]{\setlength{\rightskip}{0pt plus 5cm}FirewallSetNetfilter::FirewallSetNetfilter (
\begin{DoxyParamCaption}
\item[{{\bf FeaDataPlaneManager} \&}]{fea\_\-data\_\-plane\_\-manager}
\end{DoxyParamCaption}
)}}
\label{classFirewallSetNetfilter_a2c8e2f2f2df9b29ddfc1a4f3ce70faad}


Constructor. 


\begin{DoxyParams}{Parameters}
{\em fea\_\-data\_\-plane\_\-manager} & \hyperlink{protocolthe-p}{the} corresponding data plane manager (\hyperlink{classFeaDataPlaneManager}{FeaDataPlaneManager}). \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classFirewallSetNetfilter_a86c0a91e0d4468cae26d8f145cb47837}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!add\_\-entry@{add\_\-entry}}
\index{add\_\-entry@{add\_\-entry}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{add\_\-entry}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::add\_\-entry (
\begin{DoxyParamCaption}
\item[{const {\bf FirewallEntry} \&}]{firewall\_\-entry, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private, virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_a86c0a91e0d4468cae26d8f145cb47837}


Add a single firewall entry. 


\begin{DoxyParams}{Parameters}
{\em firewall\_\-entry} & \hyperlink{protocolthe-p}{the} entry to add. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classFirewallSetNetfilter_aff3fb43385cad3a812f3a5c53fe2fd8e}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!delete\_\-all\_\-entries4@{delete\_\-all\_\-entries4}}
\index{delete\_\-all\_\-entries4@{delete\_\-all\_\-entries4}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{delete\_\-all\_\-entries4}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::delete\_\-all\_\-entries4 (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_aff3fb43385cad3a812f3a5c53fe2fd8e}


Delete all entries in \hyperlink{protocolthe-p}{the} \hyperlink{classIPv4}{IPv4} firewall table. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classFirewallSet_af5a3ce3d8cff159aa3a7d490575df65f}{FirewallSet}.

\hypertarget{classFirewallSetNetfilter_aee6b3fe57eb24cce053d9844dbee3abd}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!delete\_\-all\_\-entries6@{delete\_\-all\_\-entries6}}
\index{delete\_\-all\_\-entries6@{delete\_\-all\_\-entries6}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{delete\_\-all\_\-entries6}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::delete\_\-all\_\-entries6 (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_aee6b3fe57eb24cce053d9844dbee3abd}


Delete all entries in \hyperlink{protocolthe-p}{the} \hyperlink{classIPv6}{IPv6} firewall table. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classFirewallSet_a63e816f562f4fcc4fcb78cd6fc4f1973}{FirewallSet}.

\hypertarget{classFirewallSetNetfilter_ad0f2b4e470553f98a8a9e2735caec466}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!delete\_\-entry@{delete\_\-entry}}
\index{delete\_\-entry@{delete\_\-entry}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{delete\_\-entry}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::delete\_\-entry (
\begin{DoxyParamCaption}
\item[{const {\bf FirewallEntry} \&}]{firewall\_\-entry, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private, virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_ad0f2b4e470553f98a8a9e2735caec466}


Delete a single firewall entry. 


\begin{DoxyParams}{Parameters}
{\em firewall\_\-entry} & \hyperlink{protocolthe-p}{the} entry to delete. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classFirewallSetNetfilter_aa3ac8f1665f45556abed1fb2dfc1f387}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!encode\_\-chain4@{encode\_\-chain4}}
\index{encode\_\-chain4@{encode\_\-chain4}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{encode\_\-chain4}]{\setlength{\rightskip}{0pt plus 5cm}int FirewallSetNetfilter::encode\_\-chain4 (
\begin{DoxyParamCaption}
\item[{const string \&}]{chain\_\-name, }
\item[{vector$<$ uint8\_\-t $>$ \&}]{buffer, }
\item[{size\_\-t \&}]{next\_\-data\_\-index, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classFirewallSetNetfilter_aa3ac8f1665f45556abed1fb2dfc1f387}


Encode a single \hyperlink{classIPv4}{IPv4} firewall chain. 


\begin{DoxyParams}{Parameters}
{\em chain\_\-name} & \hyperlink{protocolthe-p}{the} name of \hyperlink{protocolthe-p}{the} chain to encode. \\
\hline
{\em buffer} & \hyperlink{protocolthe-p}{the} buffer to store \hyperlink{protocolthe-p}{the} encoded chain. \\
\hline
{\em next\_\-data\_\-index} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference index into \hyperlink{protocolthe-p}{the} buffer with \hyperlink{protocolthe-p}{the} location to store \hyperlink{protocolthe-p}{the} encoded chain. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classFirewallSetNetfilter_a1e384b1acfb3b454b8d2442ebbe7c054}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!encode\_\-chain6@{encode\_\-chain6}}
\index{encode\_\-chain6@{encode\_\-chain6}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{encode\_\-chain6}]{\setlength{\rightskip}{0pt plus 5cm}int FirewallSetNetfilter::encode\_\-chain6 (
\begin{DoxyParamCaption}
\item[{const string \&}]{chain\_\-name, }
\item[{vector$<$ uint8\_\-t $>$ \&}]{buffer, }
\item[{size\_\-t \&}]{next\_\-data\_\-index, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classFirewallSetNetfilter_a1e384b1acfb3b454b8d2442ebbe7c054}


Encode a single \hyperlink{classIPv6}{IPv6} firewall chain. 


\begin{DoxyParams}{Parameters}
{\em chain\_\-name} & \hyperlink{protocolthe-p}{the} name of \hyperlink{protocolthe-p}{the} chain to encode. \\
\hline
{\em buffer} & \hyperlink{protocolthe-p}{the} buffer to store \hyperlink{protocolthe-p}{the} encoded chain. \\
\hline
{\em next\_\-data\_\-index} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference index into \hyperlink{protocolthe-p}{the} buffer with \hyperlink{protocolthe-p}{the} location to store \hyperlink{protocolthe-p}{the} encoded chain. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classFirewallSetNetfilter_ad8370ca2080ffc12bb16c5ee22750a8a}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!encode\_\-entry4@{encode\_\-entry4}}
\index{encode\_\-entry4@{encode\_\-entry4}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{encode\_\-entry4}]{\setlength{\rightskip}{0pt plus 5cm}int FirewallSetNetfilter::encode\_\-entry4 (
\begin{DoxyParamCaption}
\item[{const {\bf FirewallEntry} \&}]{firewall\_\-entry, }
\item[{vector$<$ uint8\_\-t $>$ \&}]{buffer, }
\item[{size\_\-t \&}]{next\_\-data\_\-index, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classFirewallSetNetfilter_ad8370ca2080ffc12bb16c5ee22750a8a}


Encode a single \hyperlink{classIPv4}{IPv4} firewall entry. 


\begin{DoxyParams}{Parameters}
{\em firewall\_\-entry} & \hyperlink{protocolthe-p}{the} entry to encode. \\
\hline
{\em buffer} & \hyperlink{protocolthe-p}{the} buffer to store \hyperlink{protocolthe-p}{the} encoded entry. \\
\hline
{\em next\_\-data\_\-index} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference index into \hyperlink{protocolthe-p}{the} buffer to store \hyperlink{protocolthe-p}{the} encoded entry. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classFirewallSetNetfilter_abbd61d0c6c8e260095ece32b334bf4d8}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!encode\_\-entry6@{encode\_\-entry6}}
\index{encode\_\-entry6@{encode\_\-entry6}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{encode\_\-entry6}]{\setlength{\rightskip}{0pt plus 5cm}int FirewallSetNetfilter::encode\_\-entry6 (
\begin{DoxyParamCaption}
\item[{const {\bf FirewallEntry} \&}]{firewall\_\-entry, }
\item[{vector$<$ uint8\_\-t $>$ \&}]{buffer, }
\item[{size\_\-t \&}]{next\_\-data\_\-index, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classFirewallSetNetfilter_abbd61d0c6c8e260095ece32b334bf4d8}


Encode a single \hyperlink{classIPv6}{IPv6} firewall entry. 


\begin{DoxyParams}{Parameters}
{\em firewall\_\-entry} & \hyperlink{protocolthe-p}{the} entry to encode. \\
\hline
{\em buffer} & \hyperlink{protocolthe-p}{the} buffer to store \hyperlink{protocolthe-p}{the} encoded entry. \\
\hline
{\em next\_\-data\_\-index} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference index into \hyperlink{protocolthe-p}{the} buffer to store \hyperlink{protocolthe-p}{the} encoded entry. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classFirewallSetNetfilter_a052788f0d7ea9e4829dcd6ca7bcfc880}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!push\_\-entries4@{push\_\-entries4}}
\index{push\_\-entries4@{push\_\-entries4}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{push\_\-entries4}]{\setlength{\rightskip}{0pt plus 5cm}int FirewallSetNetfilter::push\_\-entries4 (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classFirewallSetNetfilter_a052788f0d7ea9e4829dcd6ca7bcfc880}


\hyperlink{classPush}{Push} all locally stored \hyperlink{classIPv4}{IPv4} firewall entries. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classFirewallSetNetfilter_ae16333947379c6a2632fe061319c12e6}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!push\_\-entries6@{push\_\-entries6}}
\index{push\_\-entries6@{push\_\-entries6}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{push\_\-entries6}]{\setlength{\rightskip}{0pt plus 5cm}int FirewallSetNetfilter::push\_\-entries6 (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classFirewallSetNetfilter_ae16333947379c6a2632fe061319c12e6}


\hyperlink{classPush}{Push} all locally stored \hyperlink{classIPv6}{IPv6} firewall entries. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classFirewallSetNetfilter_af382ee9f47b3dc84a7168eb8fe208f99}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!replace\_\-entry@{replace\_\-entry}}
\index{replace\_\-entry@{replace\_\-entry}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{replace\_\-entry}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::replace\_\-entry (
\begin{DoxyParamCaption}
\item[{const {\bf FirewallEntry} \&}]{firewall\_\-entry, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private, virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_af382ee9f47b3dc84a7168eb8fe208f99}


Replace a single firewall entry. 


\begin{DoxyParams}{Parameters}
{\em firewall\_\-entry} & \hyperlink{protocolthe-p}{the} replacement entry. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classFirewallSetNetfilter_a8f757d45490c6418a778b75401250a04}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!set\_\-table4@{set\_\-table4}}
\index{set\_\-table4@{set\_\-table4}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{set\_\-table4}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::set\_\-table4 (
\begin{DoxyParamCaption}
\item[{const list$<$ {\bf FirewallEntry} $>$ \&}]{firewall\_\-entry\_\-list, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_a8f757d45490c6418a778b75401250a04}


Set \hyperlink{protocolthe-p}{the} \hyperlink{classIPv4}{IPv4} firewall table. 


\begin{DoxyParams}{Parameters}
{\em firewall\_\-entry\_\-list} & \hyperlink{protocolthe-p}{the} list with all entries to install into \hyperlink{protocolthe-p}{the} \hyperlink{classIPv4}{IPv4} firewall table. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classFirewallSet_aeffd9dba73bbafa7499f373672d7aa42}{FirewallSet}.

\hypertarget{classFirewallSetNetfilter_a87ac5ae6e5eec2c0db2c3ea0d3f6114c}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!set\_\-table6@{set\_\-table6}}
\index{set\_\-table6@{set\_\-table6}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{set\_\-table6}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::set\_\-table6 (
\begin{DoxyParamCaption}
\item[{const list$<$ {\bf FirewallEntry} $>$ \&}]{firewall\_\-entry\_\-list, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_a87ac5ae6e5eec2c0db2c3ea0d3f6114c}


Set \hyperlink{protocolthe-p}{the} \hyperlink{classIPv6}{IPv6} firewall table. 


\begin{DoxyParams}{Parameters}
{\em firewall\_\-entry\_\-list} & \hyperlink{protocolthe-p}{the} list with all entries to install into \hyperlink{protocolthe-p}{the} \hyperlink{classIPv6}{IPv6} firewall table. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classFirewallSet_af75142807ba8aaa93e7bf8308ae18d55}{FirewallSet}.

\hypertarget{classFirewallSetNetfilter_afa334566f44a7902f269aac6f704aa32}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!start@{start}}
\index{start@{start}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{start}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::start (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_afa334566f44a7902f269aac6f704aa32}


Start operation. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classFirewallSet_a25410e7217c75e821bc10a484ae25c2f}{FirewallSet}.

\hypertarget{classFirewallSetNetfilter_a0398464c8d09d674c9b4ab186c5e49b6}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!stop@{stop}}
\index{stop@{stop}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{stop}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::stop (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_a0398464c8d09d674c9b4ab186c5e49b6}


Stop operation. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classFirewallSet_af9d73517c447d2c87c4325800719a5c4}{FirewallSet}.

\hypertarget{classFirewallSetNetfilter_aa9373823c8c836a7101be1c86bde5b37}{
\index{FirewallSetNetfilter@{FirewallSetNetfilter}!update\_\-entries@{update\_\-entries}}
\index{update\_\-entries@{update\_\-entries}!FirewallSetNetfilter@{FirewallSetNetfilter}}
\subsubsection[{update\_\-entries}]{\setlength{\rightskip}{0pt plus 5cm}virtual int FirewallSetNetfilter::update\_\-entries (
\begin{DoxyParamCaption}
\item[{const list$<$ {\bf FirewallEntry} $>$ \&}]{added\_\-entries, }
\item[{const list$<$ {\bf FirewallEntry} $>$ \&}]{replaced\_\-entries, }
\item[{const list$<$ {\bf FirewallEntry} $>$ \&}]{deleted\_\-entries, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classFirewallSetNetfilter_aa9373823c8c836a7101be1c86bde5b37}


Update \hyperlink{protocolthe-p}{the} firewall entries by pushing them into \hyperlink{protocolthe-p}{the} underlying system. 


\begin{DoxyParams}{Parameters}
{\em added\_\-entries} & \hyperlink{protocolthe-p}{the} entries to add. \\
\hline
{\em replaced\_\-entries} & \hyperlink{protocolthe-p}{the} entries to replace. \\
\hline
{\em deleted\_\-entries} & \hyperlink{protocolthe-p}{the} deleted entries. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classFirewallSet_a2a35640219f0a1505c7116eacf96034c}{FirewallSet}.



The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/fea/data\_\-plane/firewall/firewall\_\-set\_\-netfilter.hh\end{DoxyCompactItemize}
