\hypertarget{classPlaintextPacketRouteEntry4}{
\section{PlaintextPacketRouteEntry4 Class Reference}
\label{classPlaintextPacketRouteEntry4}\index{PlaintextPacketRouteEntry4@{PlaintextPacketRouteEntry4}}
}


\hyperlink{classRoute}{Route} Entry for Plaintext password.  




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

Inheritance diagram for PlaintextPacketRouteEntry4:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classPlaintextPacketRouteEntry4}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classPlaintextPacketRouteEntry4_ae9c8428840a1fe8c2acdd72b01e1e65c}{
{\bfseries PlaintextPacketRouteEntry4} (const uint8\_\-t $\ast$data)}
\label{classPlaintextPacketRouteEntry4_ae9c8428840a1fe8c2acdd72b01e1e65c}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_a07df56ee8f9bc369ae91ea7742ba06ab}{
uint16\_\-t {\bfseries addr\_\-family} () const }
\label{classPlaintextPacketRouteEntry4_a07df56ee8f9bc369ae91ea7742ba06ab}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_a70eb51919f98d1e3253345c353bf1f25}{
uint16\_\-t {\bfseries auth\_\-type} () const }
\label{classPlaintextPacketRouteEntry4_a70eb51919f98d1e3253345c353bf1f25}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_ab59d8d04977b1bbc9508a1aa2d74d5bc}{
string {\bfseries password} () const }
\label{classPlaintextPacketRouteEntry4_ab59d8d04977b1bbc9508a1aa2d74d5bc}

\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static size\_\-t \hyperlink{classPlaintextPacketRouteEntry4_ad2fbee712b29887ebd33ccc395966751}{size} ()
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} RIP \hyperlink{classIPv4}{IPv4} plaintext password route entry size. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classPlaintextPacketRouteEntry4_a173ba270bab6857880c59b71ed6340b6}{
static const size\_\-t {\bfseries SIZE} = 20}
\label{classPlaintextPacketRouteEntry4_a173ba270bab6857880c59b71ed6340b6}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_abe36323d54af9bf321b82f8f0f547bd5}{
static const uint16\_\-t {\bfseries ADDR\_\-FAMILY} = 0xffff}
\label{classPlaintextPacketRouteEntry4_abe36323d54af9bf321b82f8f0f547bd5}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_adf57d340b9fea4e63a43f623dc037f2a}{
static const uint16\_\-t {\bfseries AUTH\_\-TYPE} = 2}
\label{classPlaintextPacketRouteEntry4_adf57d340b9fea4e63a43f623dc037f2a}

\end{DoxyCompactItemize}
\subsection*{Static Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classPlaintextPacketRouteEntry4_ab9d068915c5846b4650918f631c6986b}{
static const size\_\-t {\bfseries \_\-af\_\-sizeof} = 2}
\label{classPlaintextPacketRouteEntry4_ab9d068915c5846b4650918f631c6986b}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_a37a1f8eba937c8e473a79da435dcffce}{
static const size\_\-t {\bfseries \_\-auth\_\-sizeof} = 2}
\label{classPlaintextPacketRouteEntry4_a37a1f8eba937c8e473a79da435dcffce}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_acef88972eb14e622d2479277a0f209a3}{
static const size\_\-t {\bfseries \_\-pw\_\-sizeof} = 16}
\label{classPlaintextPacketRouteEntry4_acef88972eb14e622d2479277a0f209a3}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_a8698ad71500f28f387ef2a50d1c116f1}{
static const size\_\-t {\bfseries \_\-af\_\-offset} = 0}
\label{classPlaintextPacketRouteEntry4_a8698ad71500f28f387ef2a50d1c116f1}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_a27e8bfdbf194a6088a92a9c48a21e2e8}{
static const size\_\-t {\bfseries \_\-auth\_\-offset} = \_\-af\_\-offset + \_\-af\_\-sizeof}
\label{classPlaintextPacketRouteEntry4_a27e8bfdbf194a6088a92a9c48a21e2e8}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_a2d218a24cf8f6c6149730d79f45d928f}{
static const size\_\-t {\bfseries \_\-pw\_\-offset} = \_\-auth\_\-offset + \_\-auth\_\-sizeof}
\label{classPlaintextPacketRouteEntry4_a2d218a24cf8f6c6149730d79f45d928f}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classPlaintextPacketRouteEntry4_abdefa725f263780084c0883bf460038d}{
const uint8\_\-t $\ast$ {\bfseries \_\-data}}
\label{classPlaintextPacketRouteEntry4_abdefa725f263780084c0883bf460038d}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_aae580304da1d33d092bb51ac941cca49}{
const uint8\_\-t $\ast$ {\bfseries \_\-af}}
\label{classPlaintextPacketRouteEntry4_aae580304da1d33d092bb51ac941cca49}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_aaf5f966897d08f0c9efac41b901164ac}{
const uint8\_\-t $\ast$ {\bfseries \_\-auth}}
\label{classPlaintextPacketRouteEntry4_aaf5f966897d08f0c9efac41b901164ac}

\item 
\hypertarget{classPlaintextPacketRouteEntry4_afd8d548cad1aa78670337e295d5ae741}{
const uint8\_\-t $\ast$ {\bfseries \_\-pw}}
\label{classPlaintextPacketRouteEntry4_afd8d548cad1aa78670337e295d5ae741}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{classRoute}{Route} Entry for Plaintext password. The \hyperlink{classPlaintextPacketRouteEntry4}{PlaintextPacketRouteEntry4} may appear as \hyperlink{protocolthe-p}{the} first route entry in a RIPv2 packet. It has \hyperlink{protocolthe-p}{the} same size as an \hyperlink{classPacketRouteEntry}{PacketRouteEntry}$<$IPv4$>$. The address family has \hyperlink{protocolthe-p}{the} special value 0xffff which implies authentication. The authentication type is overlaid in \hyperlink{protocolthe-p}{the} route tag field and takes \hyperlink{protocolthe-p}{the} special value 2.

All items in \hyperlink{protocolthe-p}{the} route entry are stored in network order. The accessor methods provide values in host order, and \hyperlink{protocolthe-p}{the} modifiers take arguments in host order.

The plaintext authentication entry has \hyperlink{protocolthe-p}{the} following content:

af (2 bytes): // The address family auth (2 bytes): // Authentication type pw (16 bytes): // Password 

\subsection{Member Function Documentation}
\hypertarget{classPlaintextPacketRouteEntry4_ad2fbee712b29887ebd33ccc395966751}{
\index{PlaintextPacketRouteEntry4@{PlaintextPacketRouteEntry4}!size@{size}}
\index{size@{size}!PlaintextPacketRouteEntry4@{PlaintextPacketRouteEntry4}}
\subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}static size\_\-t PlaintextPacketRouteEntry4::size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, static\mbox{]}}}}
\label{classPlaintextPacketRouteEntry4_ad2fbee712b29887ebd33ccc395966751}


Get \hyperlink{protocolthe-p}{the} RIP \hyperlink{classIPv4}{IPv4} plaintext password route entry size. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} RIP \hyperlink{classIPv4}{IPv4} plaintext password route entry size. 
\end{DoxyReturn}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/rip/packets.hh\end{DoxyCompactItemize}
