\hypertarget{classAggregatorAttribute}{
\section{AggregatorAttribute Class Reference}
\label{classAggregatorAttribute}\index{AggregatorAttribute@{AggregatorAttribute}}
}
Inheritance diagram for AggregatorAttribute:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classAggregatorAttribute}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classAggregatorAttribute_add88a8642310840a739b3caa08c87107}{
\hyperlink{classAggregatorAttribute_add88a8642310840a739b3caa08c87107}{AggregatorAttribute} (const \hyperlink{classIPv4}{IPv4} \&speaker, const \hyperlink{classAsNum}{AsNum} \&as)}
\label{classAggregatorAttribute_add88a8642310840a739b3caa08c87107}

\begin{DoxyCompactList}\small\item\em \hyperlink{classAggregatorAttribute}{AggregatorAttribute}. \item\end{DoxyCompactList}\item 
\hypertarget{classAggregatorAttribute_a75631709f8d2e03ddf9b4520b2553a38}{
{\bfseries AggregatorAttribute} (const uint8\_\-t $\ast$d, bool use\_\-4byte\_\-asnums)  throw (CorruptMessage)}
\label{classAggregatorAttribute_a75631709f8d2e03ddf9b4520b2553a38}

\item 
\hyperlink{classPathAttribute}{PathAttribute} $\ast$ \hyperlink{classAggregatorAttribute_a49f5cbf9e5ee0311f179081ad573fd39}{clone} () const 
\begin{DoxyCompactList}\small\item\em Make a copy of \hyperlink{protocolthe-p}{the} current attribute. \item\end{DoxyCompactList}\item 
string \hyperlink{classAggregatorAttribute_af10c311da72001f3928f5b095df42420}{str} () const 
\begin{DoxyCompactList}\small\item\em We need to encode an attribute to send to a peer. \item\end{DoxyCompactList}\item 
\hypertarget{classAggregatorAttribute_a96f873dea5b9402f4732c2499cd665fa}{
const \hyperlink{classIPv4}{IPv4} \& {\bfseries route\_\-aggregator} () const }
\label{classAggregatorAttribute_a96f873dea5b9402f4732c2499cd665fa}

\item 
\hypertarget{classAggregatorAttribute_abe498401b97e2d2d3325c63e3fefa5ed}{
const \hyperlink{classAsNum}{AsNum} \& {\bfseries aggregator\_\-as} () const }
\label{classAggregatorAttribute_abe498401b97e2d2d3325c63e3fefa5ed}

\item 
bool \hyperlink{classAggregatorAttribute_adf6eb3dc7f7e550434ba564dc9714436}{encode} (uint8\_\-t $\ast$buf, size\_\-t \&wire\_\-size, const \hyperlink{classBGPPeerData}{BGPPeerData} $\ast$peerdata) const 
\begin{DoxyCompactList}\small\item\em encode a path attribute. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classAggregatorAttribute_ab285d2869587dde0c84419354cd5c0bf}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-speaker}}
\label{classAggregatorAttribute_ab285d2869587dde0c84419354cd5c0bf}

\item 
\hypertarget{classAggregatorAttribute_a16454f774199d66247b61ef2f97dafdd}{
\hyperlink{classAsNum}{AsNum} {\bfseries \_\-as}}
\label{classAggregatorAttribute_a16454f774199d66247b61ef2f97dafdd}

\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classAggregatorAttribute_a49f5cbf9e5ee0311f179081ad573fd39}{
\index{AggregatorAttribute@{AggregatorAttribute}!clone@{clone}}
\index{clone@{clone}!AggregatorAttribute@{AggregatorAttribute}}
\subsubsection[{clone}]{\setlength{\rightskip}{0pt plus 5cm}{\bf PathAttribute} $\ast$ AggregatorAttribute::clone (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classAggregatorAttribute_a49f5cbf9e5ee0311f179081ad573fd39}


Make a copy of \hyperlink{protocolthe-p}{the} current attribute. 

The derived class should use new to generate a copy of itself. The wire format representation will not be used by \hyperlink{protocolthe-p}{the} caller. 

Implements \hyperlink{classPathAttribute_a17f0c215d2873317797a899b7ac58ef6}{PathAttribute}.

\hypertarget{classAggregatorAttribute_adf6eb3dc7f7e550434ba564dc9714436}{
\index{AggregatorAttribute@{AggregatorAttribute}!encode@{encode}}
\index{encode@{encode}!AggregatorAttribute@{AggregatorAttribute}}
\subsubsection[{encode}]{\setlength{\rightskip}{0pt plus 5cm}bool AggregatorAttribute::encode (
\begin{DoxyParamCaption}
\item[{uint8\_\-t $\ast$}]{buf, }
\item[{size\_\-t \&}]{wire\_\-size, }
\item[{const {\bf BGPPeerData} $\ast$}]{peerdata}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classAggregatorAttribute_adf6eb3dc7f7e550434ba564dc9714436}


encode a path attribute. 

In a sane world, we'd use a virtual function for this. But we store so many path attributes that we can't afford \hyperlink{protocolthe-p}{the} overhead of a virtual function table for them, so we have to do this \hyperlink{protocolthe-p}{the} hard way

XXX THE ABOVE IS NO LONGER THE CASE. WE SHOULD REWRITE THIS TO USE VIRTUAL FUNCTIONS 

Implements \hyperlink{classPathAttribute_a5570039d9cd5e255bb187fd245861e09}{PathAttribute}.

\hypertarget{classAggregatorAttribute_af10c311da72001f3928f5b095df42420}{
\index{AggregatorAttribute@{AggregatorAttribute}!str@{str}}
\index{str@{str}!AggregatorAttribute@{AggregatorAttribute}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}string AggregatorAttribute::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classAggregatorAttribute_af10c311da72001f3928f5b095df42420}


We need to encode an attribute to send to a peer. 

However we only have \hyperlink{protocolthe-p}{the} canonically encoded byte stream data for it. Sometimes that is fine, and we should just send that; sometimes we need to decode and re-\/encode for this specific peer. 

Reimplemented from \hyperlink{classPathAttribute_aae2900e4b96589e10291f96d3f584b6e}{PathAttribute}.



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