\hypertarget{classBGPUpdateAttrib}{
\section{BGPUpdateAttrib Class Reference}
\label{classBGPUpdateAttrib}\index{BGPUpdateAttrib@{BGPUpdateAttrib}}
}


Encoding used in BGP update packets to encode prefixes (\hyperlink{classIPv4}{IPv4} only) for withdrawn routes and NLRI information.  




{\ttfamily \#include $<$update\_\-attrib.hh$>$}



Inherits \hyperlink{classIPNet}{IPNet$<$ IPv4 $>$}.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classBGPUpdateAttrib_a6812bd33e862021459914bd77045f251}{
\hyperlink{classBGPUpdateAttrib_a6812bd33e862021459914bd77045f251}{BGPUpdateAttrib} (const \hyperlink{classIPv4}{IPv4} \&d, uint8\_\-t s)}
\label{classBGPUpdateAttrib_a6812bd33e862021459914bd77045f251}

\begin{DoxyCompactList}\small\item\em construct from an address d and mask length s \item\end{DoxyCompactList}\item 
\hypertarget{classBGPUpdateAttrib_ae199b3cb6ce044605ab98a2e7da008df}{
{\bfseries BGPUpdateAttrib} (const \hyperlink{classIPNet}{IPv4Net} \&p)}
\label{classBGPUpdateAttrib_ae199b3cb6ce044605ab98a2e7da008df}

\item 
\hypertarget{classBGPUpdateAttrib_a64ccced6900551792598efa871e278a7}{
\hyperlink{classBGPUpdateAttrib_a64ccced6900551792598efa871e278a7}{BGPUpdateAttrib} (const uint8\_\-t $\ast$d)}
\label{classBGPUpdateAttrib_a64ccced6900551792598efa871e278a7}

\begin{DoxyCompactList}\small\item\em Construct from wire format. \item\end{DoxyCompactList}\item 
\hypertarget{classBGPUpdateAttrib_aeeefff512c802286b9d6c3c3bbe8f99b}{
void \hyperlink{classBGPUpdateAttrib_aeeefff512c802286b9d6c3c3bbe8f99b}{copy\_\-out} (uint8\_\-t $\ast$d) const }
\label{classBGPUpdateAttrib_aeeefff512c802286b9d6c3c3bbe8f99b}

\begin{DoxyCompactList}\small\item\em store in memory in wire format \item\end{DoxyCompactList}\item 
\hypertarget{classBGPUpdateAttrib_a56e866fc188f360f617e0d748b7b4d24}{
size\_\-t \hyperlink{classBGPUpdateAttrib_a56e866fc188f360f617e0d748b7b4d24}{wire\_\-size} () const }
\label{classBGPUpdateAttrib_a56e866fc188f360f617e0d748b7b4d24}

\begin{DoxyCompactList}\small\item\em total size in encoded format \item\end{DoxyCompactList}\item 
\hypertarget{classBGPUpdateAttrib_ae1a7b8232775605adb33b3b02aedaba7}{
size\_\-t {\bfseries calc\_\-byte\_\-size} () const }
\label{classBGPUpdateAttrib_ae1a7b8232775605adb33b3b02aedaba7}

\item 
\hypertarget{classBGPUpdateAttrib_a4300465889b70492694018d4f8ed4c5a}{
const \hyperlink{classIPNet}{IPv4Net} \& {\bfseries net} () const }
\label{classBGPUpdateAttrib_a4300465889b70492694018d4f8ed4c5a}

\item 
\hypertarget{classBGPUpdateAttrib_a240d3702d91bf576cfabf729d38c4975}{
string {\bfseries str} (string nlri\_\-or\_\-withdraw) const }
\label{classBGPUpdateAttrib_a240d3702d91bf576cfabf729d38c4975}

\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classBGPUpdateAttrib_a66e517e76bf98ac4f5b80098c45ea777}{
static size\_\-t {\bfseries size} (const uint8\_\-t $\ast$d)  throw (CorruptMessage)}
\label{classBGPUpdateAttrib_a66e517e76bf98ac4f5b80098c45ea777}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Encoding used in BGP update packets to encode prefixes (\hyperlink{classIPv4}{IPv4} only) for withdrawn routes and NLRI information. The prefixes are passed on \hyperlink{protocolthe-p}{the} wire in a compressed format: 1 byte: prefix length L (in bits) n bytes: prefix, L bits (n = (L+7)/8)

Effectively, this class is just an IPv4Net. We only need methods to encode and decode \hyperlink{protocolthe-p}{the} objects. 

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