\hypertarget{classOriginatorIDAttribute}{
\section{OriginatorIDAttribute Class Reference}
\label{classOriginatorIDAttribute}\index{OriginatorIDAttribute@{OriginatorIDAttribute}}
}


\hyperlink{classOriginatorIDAttribute}{OriginatorIDAttribute} is an optional non-\/transitive uint32.  




{\ttfamily \#include $<$path\_\-attribute.hh$>$}

Inheritance diagram for OriginatorIDAttribute:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classOriginatorIDAttribute}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classOriginatorIDAttribute_a1c4c83c4effbef513b275a0827617eef}{
\hyperlink{classOriginatorIDAttribute_a1c4c83c4effbef513b275a0827617eef}{OriginatorIDAttribute} (const \hyperlink{classIPv4}{IPv4} originator\_\-id)}
\label{classOriginatorIDAttribute_a1c4c83c4effbef513b275a0827617eef}

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

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

\item 
bool \hyperlink{classOriginatorIDAttribute_a7981a66809e32f81bb56f386133dbd46}{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{classOriginatorIDAttribute_a3aefba0b52adb5c7cc1de81f76f5af4b}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-originator\_\-id}}
\label{classOriginatorIDAttribute_a3aefba0b52adb5c7cc1de81f76f5af4b}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{classOriginatorIDAttribute}{OriginatorIDAttribute} is an optional non-\/transitive uint32. 

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


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


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


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}
