\hypertarget{classLinkStateUpdatePacket}{
\section{LinkStateUpdatePacket Class Reference}
\label{classLinkStateUpdatePacket}\index{LinkStateUpdatePacket@{LinkStateUpdatePacket}}
}


Link State Update \hyperlink{classPacket}{Packet}.  




{\ttfamily \#include $<$packet.hh$>$}

Inheritance diagram for LinkStateUpdatePacket:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classLinkStateUpdatePacket}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classLinkStateUpdatePacket_acec61f6ed3d29ccf91dd267fe18c8ad8}{
{\bfseries LinkStateUpdatePacket} (\hyperlink{structOspfTypes_a60eb031df0c10af753789ae76b185ec2}{OspfTypes::Version} version, \hyperlink{classLsaDecoder}{LsaDecoder} \&lsa\_\-decoder)}
\label{classLinkStateUpdatePacket_acec61f6ed3d29ccf91dd267fe18c8ad8}

\item 
\hyperlink{structOspfTypes_abe52a1f48e880751028d473f6a9f780d}{OspfTypes::Type} \hyperlink{classLinkStateUpdatePacket_aa84f2a060f4b28fe5fdbe7064e2bf368}{get\_\-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{classPacket}{Packet} $\ast$ \hyperlink{classLinkStateUpdatePacket_a7a96424d545268d623584c4e4ccd86e4}{decode} (uint8\_\-t $\ast$ptr, size\_\-t len) const   throw (InvalidPacket)
\begin{DoxyCompactList}\small\item\em Decode \hyperlink{protocolthe-p}{the} packet. \item\end{DoxyCompactList}\item 
bool \hyperlink{classLinkStateUpdatePacket_a5976b40e62509cc8b37a9343b7fbea07}{encode} (vector$<$ uint8\_\-t $>$ \&pkt)
\begin{DoxyCompactList}\small\item\em Encode \hyperlink{protocolthe-p}{the} packet. \item\end{DoxyCompactList}\item 
bool \hyperlink{classLinkStateUpdatePacket_a45a97a402c4f8167145eb9d164412594}{encode} (vector$<$ uint8\_\-t $>$ \&pkt, uint16\_\-t inftransdelay)
\begin{DoxyCompactList}\small\item\em Encode \hyperlink{protocolthe-p}{the} packet. \item\end{DoxyCompactList}\item 
\hypertarget{classLinkStateUpdatePacket_a09f48d1f10219c0a98fefabf4f313e14}{
list$<$ \hyperlink{classref__ptr}{Lsa::LsaRef} $>$ \& {\bfseries get\_\-lsas} ()}
\label{classLinkStateUpdatePacket_a09f48d1f10219c0a98fefabf4f313e14}

\item 
\hypertarget{classLinkStateUpdatePacket_a5952b1a81b09ca7b88ccb3fa76d238f3}{
string \hyperlink{classLinkStateUpdatePacket_a5952b1a81b09ca7b88ccb3fa76d238f3}{str} () const }
\label{classLinkStateUpdatePacket_a5952b1a81b09ca7b88ccb3fa76d238f3}

\begin{DoxyCompactList}\small\item\em Generate a printable representation of \hyperlink{protocolthe-p}{the} packet. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classLinkStateUpdatePacket_a3e458d7e65f9370d7d4a7e3cb71a03c7}{
\hyperlink{classLsaDecoder}{LsaDecoder} \& {\bfseries \_\-lsa\_\-decoder}}
\label{classLinkStateUpdatePacket_a3e458d7e65f9370d7d4a7e3cb71a03c7}

\item 
\hypertarget{classLinkStateUpdatePacket_a2f799f61db22ed0575f499a055c694cb}{
list$<$ \hyperlink{classref__ptr}{Lsa::LsaRef} $>$ {\bfseries \_\-lsas}}
\label{classLinkStateUpdatePacket_a2f799f61db22ed0575f499a055c694cb}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Link State Update \hyperlink{classPacket}{Packet}. 

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


Decode \hyperlink{protocolthe-p}{the} packet. 

The returned packet must be free'd. 

Implements \hyperlink{classPacket_af6b945f661691c93345e93bd3d01fd2d}{Packet}.

\hypertarget{classLinkStateUpdatePacket_a45a97a402c4f8167145eb9d164412594}{
\index{LinkStateUpdatePacket@{LinkStateUpdatePacket}!encode@{encode}}
\index{encode@{encode}!LinkStateUpdatePacket@{LinkStateUpdatePacket}}
\subsubsection[{encode}]{\setlength{\rightskip}{0pt plus 5cm}bool LinkStateUpdatePacket::encode (
\begin{DoxyParamCaption}
\item[{vector$<$ uint8\_\-t $>$ \&}]{pkt, }
\item[{uint16\_\-t}]{inftransdelay}
\end{DoxyParamCaption}
)}}
\label{classLinkStateUpdatePacket_a45a97a402c4f8167145eb9d164412594}


Encode \hyperlink{protocolthe-p}{the} packet. 


\begin{DoxyParams}{Parameters}
{\em pkt} & vector into which \hyperlink{protocolthe-p}{the} packet should be placed. \\
\hline
{\em inftransdelay} & add this delay to \hyperlink{protocolthe-p}{the} age field of each LSA. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} encoding succeeded. 
\end{DoxyReturn}
\hypertarget{classLinkStateUpdatePacket_a5976b40e62509cc8b37a9343b7fbea07}{
\index{LinkStateUpdatePacket@{LinkStateUpdatePacket}!encode@{encode}}
\index{encode@{encode}!LinkStateUpdatePacket@{LinkStateUpdatePacket}}
\subsubsection[{encode}]{\setlength{\rightskip}{0pt plus 5cm}bool LinkStateUpdatePacket::encode (
\begin{DoxyParamCaption}
\item[{vector$<$ uint8\_\-t $>$ \&}]{pkt}
\end{DoxyParamCaption}
)}}
\label{classLinkStateUpdatePacket_a5976b40e62509cc8b37a9343b7fbea07}


Encode \hyperlink{protocolthe-p}{the} packet. 


\begin{DoxyParams}{Parameters}
{\em pkt} & vector into which \hyperlink{protocolthe-p}{the} packet should be placed. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} encoding succeeded. 
\end{DoxyReturn}


Reimplemented from \hyperlink{classPacket_ab13870adf8a96f499581589f1d1463ce}{Packet}.

\hypertarget{classLinkStateUpdatePacket_aa84f2a060f4b28fe5fdbe7064e2bf368}{
\index{LinkStateUpdatePacket@{LinkStateUpdatePacket}!get\_\-type@{get\_\-type}}
\index{get\_\-type@{get\_\-type}!LinkStateUpdatePacket@{LinkStateUpdatePacket}}
\subsubsection[{get\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf OspfTypes::Type} LinkStateUpdatePacket::get\_\-type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classLinkStateUpdatePacket_aa84f2a060f4b28fe5fdbe7064e2bf368}


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

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


Implements \hyperlink{classPacket_aa0f90dc35cd40f34f6eac3a7cdb8d69b}{Packet}.



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