\hypertarget{classUnknownAttribute}{
\section{UnknownAttribute Class Reference}
\label{classUnknownAttribute}\index{UnknownAttribute@{UnknownAttribute}}
}
Inheritance diagram for UnknownAttribute:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classUnknownAttribute}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classUnknownAttribute_a3c6956b2ea8022b97d24fbe34dbb0e3c}{
{\bfseries UnknownAttribute} (const uint8\_\-t $\ast$d)  throw (CorruptMessage)}
\label{classUnknownAttribute_a3c6956b2ea8022b97d24fbe34dbb0e3c}

\item 
\hypertarget{classUnknownAttribute_a937d4932c37049f8a88ad37c04e7fd59}{
{\bfseries UnknownAttribute} (uint8\_\-t $\ast$data, size\_\-t size, uint8\_\-t flags)}
\label{classUnknownAttribute_a937d4932c37049f8a88ad37c04e7fd59}

\item 
\hyperlink{classPathAttribute}{PathAttribute} $\ast$ \hyperlink{classUnknownAttribute_ad0ad4dc275692409d55e45e5a11af7f0}{clone} () const 
\begin{DoxyCompactList}\small\item\em Make a copy of \hyperlink{protocolthe-p}{the} current attribute. \item\end{DoxyCompactList}\item 
string \hyperlink{classUnknownAttribute_ae2eec0ec673a5a4f41c8d6a6ab1a5c14}{str} () const 
\begin{DoxyCompactList}\small\item\em We need to encode an attribute to send to a peer. \item\end{DoxyCompactList}\item 
bool \hyperlink{classUnknownAttribute_afdaf2cf6a5d1d2421cf181a5e6f097eb}{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{classUnknownAttribute_af0bf4050d54397f26496b1a9c5a630a2}{
size\_\-t {\bfseries \_\-size}}
\label{classUnknownAttribute_af0bf4050d54397f26496b1a9c5a630a2}

\item 
\hypertarget{classUnknownAttribute_ac6ec44b0b189aa0fdcf7bff274c37904}{
uint8\_\-t $\ast$ {\bfseries \_\-data}}
\label{classUnknownAttribute_ac6ec44b0b189aa0fdcf7bff274c37904}

\end{DoxyCompactItemize}


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


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


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


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}
