\hypertarget{classNetworkLsa}{
\section{NetworkLsa Class Reference}
\label{classNetworkLsa}\index{NetworkLsa@{NetworkLsa}}
}
Inheritance diagram for NetworkLsa:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classNetworkLsa}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classNetworkLsa_a5ebee8a21e2462366d90890b475a7939}{
{\bfseries NetworkLsa} (\hyperlink{structOspfTypes_a60eb031df0c10af753789ae76b185ec2}{OspfTypes::Version} version)}
\label{classNetworkLsa_a5ebee8a21e2462366d90890b475a7939}

\item 
\hypertarget{classNetworkLsa_a7b5014b1d9d7855782cb42fa69625242}{
{\bfseries NetworkLsa} (\hyperlink{structOspfTypes_a60eb031df0c10af753789ae76b185ec2}{OspfTypes::Version} version, uint8\_\-t $\ast$buf, size\_\-t len)}
\label{classNetworkLsa_a7b5014b1d9d7855782cb42fa69625242}

\item 
size\_\-t \hyperlink{classNetworkLsa_a1de96bbf9f569f099e681c4240ab1bfb}{min\_\-length} () const 
\item 
uint16\_\-t \hyperlink{classNetworkLsa_a37aeb3e6a21c479b99c4cdfee6e55618}{get\_\-ls\_\-type} () const 
\begin{DoxyCompactList}\small\item\em It is \hyperlink{protocolthe-p}{the} responsibilty of \hyperlink{protocolthe-p}{the} derived type to return this information. \item\end{DoxyCompactList}\item 
\hyperlink{classref__ptr}{LsaRef} \hyperlink{classNetworkLsa_aa4b968da45a13096622eda2c5191e0d5}{decode} (uint8\_\-t $\ast$buf, size\_\-t \&len) const   throw (InvalidPacket)
\begin{DoxyCompactList}\small\item\em Decode an LSA. \item\end{DoxyCompactList}\item 
bool \hyperlink{classNetworkLsa_ad6c91c9ac457a20479276754bbdf7466}{encode} ()
\begin{DoxyCompactList}\small\item\em Encode an LSA for transmission. \item\end{DoxyCompactList}\item 
\hypertarget{classNetworkLsa_aeadf297604240012df1894395f346e46}{
void {\bfseries set\_\-options} (uint32\_\-t options)}
\label{classNetworkLsa_aeadf297604240012df1894395f346e46}

\item 
\hypertarget{classNetworkLsa_a84e607d4249db7fcb7c2a2ebe3e389da}{
uint32\_\-t {\bfseries get\_\-options} () const }
\label{classNetworkLsa_a84e607d4249db7fcb7c2a2ebe3e389da}

\item 
\hypertarget{classNetworkLsa_a11ea2a565e89fe27dccfdebcd082868c}{
void {\bfseries set\_\-network\_\-mask} (uint32\_\-t network\_\-mask)}
\label{classNetworkLsa_a11ea2a565e89fe27dccfdebcd082868c}

\item 
\hypertarget{classNetworkLsa_aadd0e35c1b20f8277a907f1622d1d845}{
uint32\_\-t {\bfseries get\_\-network\_\-mask} () const }
\label{classNetworkLsa_aadd0e35c1b20f8277a907f1622d1d845}

\item 
\hypertarget{classNetworkLsa_a619db13ba12fce30b641f45d22f7fe67}{
list$<$ \hyperlink{structOspfTypes_a8fc36f0cbcee50cfdb0d10b192aaa53a}{OspfTypes::RouterID} $>$ \& {\bfseries get\_\-attached\_\-routers} ()}
\label{classNetworkLsa_a619db13ba12fce30b641f45d22f7fe67}

\item 
\hypertarget{classNetworkLsa_a873cd6c5fcc91cca3e6b4a1a492bd127}{
const char $\ast$ \hyperlink{classNetworkLsa_a873cd6c5fcc91cca3e6b4a1a492bd127}{name} () const }
\label{classNetworkLsa_a873cd6c5fcc91cca3e6b4a1a492bd127}

\begin{DoxyCompactList}\small\item\em Printable name of this LSA. \item\end{DoxyCompactList}\item 
\hypertarget{classNetworkLsa_ae5b5e758480c49cfacf942b26d7dd973}{
string \hyperlink{classNetworkLsa_ae5b5e758480c49cfacf942b26d7dd973}{str} () const }
\label{classNetworkLsa_ae5b5e758480c49cfacf942b26d7dd973}

\begin{DoxyCompactList}\small\item\em Generate a printable representation. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classNetworkLsa_a5cadb5d413478fd76dd15b935fa9f0c5}{
uint32\_\-t {\bfseries \_\-options}}
\label{classNetworkLsa_a5cadb5d413478fd76dd15b935fa9f0c5}

\item 
\hypertarget{classNetworkLsa_a82f8d36651b95c552f73284e66bc8a1c}{
uint32\_\-t {\bfseries \_\-network\_\-mask}}
\label{classNetworkLsa_a82f8d36651b95c552f73284e66bc8a1c}

\item 
\hypertarget{classNetworkLsa_a53cc16cb3e12b9ff4ad197ebc4b2fe32}{
list$<$ \hyperlink{structOspfTypes_a8fc36f0cbcee50cfdb0d10b192aaa53a}{OspfTypes::RouterID} $>$ {\bfseries \_\-attached\_\-routers}}
\label{classNetworkLsa_a53cc16cb3e12b9ff4ad197ebc4b2fe32}

\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classNetworkLsa_aa4b968da45a13096622eda2c5191e0d5}{
\index{NetworkLsa@{NetworkLsa}!decode@{decode}}
\index{decode@{decode}!NetworkLsa@{NetworkLsa}}
\subsubsection[{decode}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Lsa::LsaRef} NetworkLsa::decode (
\begin{DoxyParamCaption}
\item[{uint8\_\-t $\ast$}]{buf, }
\item[{size\_\-t \&}]{len}
\end{DoxyParamCaption}
) const  throw ({\bf InvalidPacket})\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classNetworkLsa_aa4b968da45a13096622eda2c5191e0d5}


Decode an LSA. 


\begin{DoxyParams}{Parameters}
{\em buf} & pointer to buffer. \\
\hline
{\em len} & length of \hyperlink{protocolthe-p}{the} buffer on input set to \hyperlink{protocolthe-p}{the} number of bytes consumed on output.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to an LSA that manages its own memory. 
\end{DoxyReturn}


Implements \hyperlink{classLsa_a2658a7d54d470268138d15938be0f464}{Lsa}.

\hypertarget{classNetworkLsa_ad6c91c9ac457a20479276754bbdf7466}{
\index{NetworkLsa@{NetworkLsa}!encode@{encode}}
\index{encode@{encode}!NetworkLsa@{NetworkLsa}}
\subsubsection[{encode}]{\setlength{\rightskip}{0pt plus 5cm}bool NetworkLsa::encode (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classNetworkLsa_ad6c91c9ac457a20479276754bbdf7466}


Encode an LSA for transmission. 

\begin{DoxyReturn}{Returns}
True on success. 
\end{DoxyReturn}


Implements \hyperlink{classLsa_ae3bd3a0bd24ed458cc8ac8d7e91d1c35}{Lsa}.

\hypertarget{classNetworkLsa_a37aeb3e6a21c479b99c4cdfee6e55618}{
\index{NetworkLsa@{NetworkLsa}!get\_\-ls\_\-type@{get\_\-ls\_\-type}}
\index{get\_\-ls\_\-type@{get\_\-ls\_\-type}!NetworkLsa@{NetworkLsa}}
\subsubsection[{get\_\-ls\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}uint16\_\-t NetworkLsa::get\_\-ls\_\-type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classNetworkLsa_a37aeb3e6a21c479b99c4cdfee6e55618}


It is \hyperlink{protocolthe-p}{the} responsibilty of \hyperlink{protocolthe-p}{the} derived type to return this information. 

\begin{DoxyReturn}{Returns}
The type this lsa represents. 
\end{DoxyReturn}


Implements \hyperlink{classLsa_a0dcc648678ac88856635609a17029ae9}{Lsa}.

\hypertarget{classNetworkLsa_a1de96bbf9f569f099e681c4240ab1bfb}{
\index{NetworkLsa@{NetworkLsa}!min\_\-length@{min\_\-length}}
\index{min\_\-length@{min\_\-length}!NetworkLsa@{NetworkLsa}}
\subsubsection[{min\_\-length}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t NetworkLsa::min\_\-length (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classNetworkLsa_a1de96bbf9f569f099e681c4240ab1bfb}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} minimum length of a Network-\/LSA. 
\end{DoxyReturn}


Implements \hyperlink{classLsa_ad3324ea3bfa81ff90d15690c5ccbd1e4}{Lsa}.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/ospf/lsa.hh\item 
/home/greearb/git/xorp.ct.github/xorp/ospf/lsa.cc\end{DoxyCompactItemize}
