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

\begin{DoxyCompactList}\small\item\em \hyperlink{classAS4AggregatorAttribute}{AS4AggregatorAttribute}. \item\end{DoxyCompactList}\item 
\hypertarget{classAS4AggregatorAttribute_a01eda5dc79006ca098dd7cfdf8aed2fa}{
{\bfseries AS4AggregatorAttribute} (const uint8\_\-t $\ast$d)  throw (CorruptMessage)}
\label{classAS4AggregatorAttribute_a01eda5dc79006ca098dd7cfdf8aed2fa}

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

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

\item 
bool \hyperlink{classAS4AggregatorAttribute_a59fbaba17c3723dc7448a8e15a6c4ef6}{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{classAS4AggregatorAttribute_aee0fcef7a30eef3d1da60d04c98b285e}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-speaker}}
\label{classAS4AggregatorAttribute_aee0fcef7a30eef3d1da60d04c98b285e}

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

\end{DoxyCompactItemize}


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


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{classAS4AggregatorAttribute_a59fbaba17c3723dc7448a8e15a6c4ef6}{
\index{AS4AggregatorAttribute@{AS4AggregatorAttribute}!encode@{encode}}
\index{encode@{encode}!AS4AggregatorAttribute@{AS4AggregatorAttribute}}
\subsubsection[{encode}]{\setlength{\rightskip}{0pt plus 5cm}bool AS4AggregatorAttribute::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{classAS4AggregatorAttribute_a59fbaba17c3723dc7448a8e15a6c4ef6}


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{classAS4AggregatorAttribute_a488d5f0df7c6bfc187a13f75903d45d6}{
\index{AS4AggregatorAttribute@{AS4AggregatorAttribute}!str@{str}}
\index{str@{str}!AS4AggregatorAttribute@{AS4AggregatorAttribute}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}string AS4AggregatorAttribute::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classAS4AggregatorAttribute_a488d5f0df7c6bfc187a13f75903d45d6}


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}
