\hypertarget{classASPathAttribute}{
\section{ASPathAttribute Class Reference}
\label{classASPathAttribute}\index{ASPathAttribute@{ASPathAttribute}}
}


\hyperlink{classASPathAttribute}{ASPathAttribute} contain an \hyperlink{classASPath}{ASPath}, whose structure is documented in \hyperlink{aspath_8hh_source}{aspath.hh}.  




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

Inheritance diagram for ASPathAttribute:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classASPathAttribute}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classASPathAttribute_aab77f0bba8f3271281380c0da718856d}{
\hyperlink{classASPathAttribute_aab77f0bba8f3271281380c0da718856d}{ASPathAttribute} (const \hyperlink{classASPath}{ASPath} \&p)}
\label{classASPathAttribute_aab77f0bba8f3271281380c0da718856d}

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

\item 
\hyperlink{classPathAttribute}{PathAttribute} $\ast$ \hyperlink{classASPathAttribute_ab3c2fae06814c88059bc86882c3f1a62}{clone} () const 
\begin{DoxyCompactList}\small\item\em Make a copy of \hyperlink{protocolthe-p}{the} current attribute. \item\end{DoxyCompactList}\item 
string \hyperlink{classASPathAttribute_a3567d9038d3bee553b2ac1e7a5845a1e}{str} () const 
\begin{DoxyCompactList}\small\item\em We need to encode an attribute to send to a peer. \item\end{DoxyCompactList}\item 
\hypertarget{classASPathAttribute_a491a8683a3b304fe780d634b7e93fb51}{
\hyperlink{classASPath}{ASPath} \& {\bfseries as\_\-path} () const }
\label{classASPathAttribute_a491a8683a3b304fe780d634b7e93fb51}

\item 
\hypertarget{classASPathAttribute_a8c78be5d4108f7ec851c63d6c61b6de9}{
\hyperlink{classAS4Path}{AS4Path} \& {\bfseries as4\_\-path} () const }
\label{classASPathAttribute_a8c78be5d4108f7ec851c63d6c61b6de9}

\item 
\hypertarget{classASPathAttribute_aec50147f6f524a160859c784d3d5f8d1}{
bool \hyperlink{classASPathAttribute_aec50147f6f524a160859c784d3d5f8d1}{encode} (uint8\_\-t $\ast$buf, size\_\-t \&wire\_\-size, const \hyperlink{classBGPPeerData}{BGPPeerData} $\ast$peerdata) const }
\label{classASPathAttribute_aec50147f6f524a160859c784d3d5f8d1}

\begin{DoxyCompactList}\small\item\em see note in \hyperlink{aspath_8hh_source}{aspath.hh} on using 4-\/byte AS numbers \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classASPathAttribute_a9a78ad2e74b5c15ea4214d08a5870891}{
\hyperlink{classASPath}{ASPath} $\ast$ {\bfseries \_\-as\_\-path}}
\label{classASPathAttribute_a9a78ad2e74b5c15ea4214d08a5870891}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{classASPathAttribute}{ASPathAttribute} contain an \hyperlink{classASPath}{ASPath}, whose structure is documented in \hyperlink{aspath_8hh_source}{aspath.hh}. 

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


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


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}
