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

\item 
void \hyperlink{classAS4Segment_a4fb3dc0d5f4669892995eba37b4e2b54}{decode} (const uint8\_\-t $\ast$d)  throw (CorruptMessage)
\begin{DoxyCompactList}\small\item\em Convert \hyperlink{protocolthe-p}{the} external representation into \hyperlink{protocolthe-p}{the} internal one. \item\end{DoxyCompactList}\item 
const uint8\_\-t $\ast$ \hyperlink{classAS4Segment_aa374cd7c49b69de32bd88ad73335249d}{encode} (size\_\-t \&len, uint8\_\-t $\ast$buf) const 
\begin{DoxyCompactList}\small\item\em Convert from internal to external representation. \item\end{DoxyCompactList}\item 
size\_\-t \hyperlink{classAS4Segment_a3a0532e5348f9512536943d16242e022}{wire\_\-size} () const 
\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classAS4Segment_a4fb3dc0d5f4669892995eba37b4e2b54}{
\index{AS4Segment@{AS4Segment}!decode@{decode}}
\index{decode@{decode}!AS4Segment@{AS4Segment}}
\subsubsection[{decode}]{\setlength{\rightskip}{0pt plus 5cm}void AS4Segment::decode (
\begin{DoxyParamCaption}
\item[{const uint8\_\-t $\ast$}]{d}
\end{DoxyParamCaption}
)  throw ({\bf CorruptMessage})}}
\label{classAS4Segment_a4fb3dc0d5f4669892995eba37b4e2b54}


Convert \hyperlink{protocolthe-p}{the} external representation into \hyperlink{protocolthe-p}{the} internal one. 

\_\-type is d\mbox{[}0\mbox{]}, \_\-entries is d\mbox{[}1\mbox{]}, entries follow.

This is used when decoding a AS4\_\-PATH attribute.

\_\-type is d\mbox{[}0\mbox{]}, \_\-entries is d\mbox{[}1\mbox{]}, entries follow. 

Reimplemented from \hyperlink{classASSegment_a08b64d8b0a219d7d6e99e493baddf9ce}{ASSegment}.

\hypertarget{classAS4Segment_aa374cd7c49b69de32bd88ad73335249d}{
\index{AS4Segment@{AS4Segment}!encode@{encode}}
\index{encode@{encode}!AS4Segment@{AS4Segment}}
\subsubsection[{encode}]{\setlength{\rightskip}{0pt plus 5cm}const uint8\_\-t $\ast$ AS4Segment::encode (
\begin{DoxyParamCaption}
\item[{size\_\-t \&}]{len, }
\item[{uint8\_\-t $\ast$}]{buf}
\end{DoxyParamCaption}
) const}}
\label{classAS4Segment_aa374cd7c49b69de32bd88ad73335249d}


Convert from internal to external representation. 

Convert from internal to external AS4\_\-PATH representation.

If we do not pass a buffer (buf = 0), then \hyperlink{protocolthe-p}{the} routine will allocate a new one; otherwise, len indicates \hyperlink{protocolthe-p}{the} size of \hyperlink{protocolthe-p}{the} input buffer, which must be large enough to store \hyperlink{protocolthe-p}{the} encoding. \begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} pointer to \hyperlink{protocolthe-p}{the} buffer, len is \hyperlink{protocolthe-p}{the} actual size. 
\end{DoxyReturn}


Reimplemented from \hyperlink{classASSegment_a1ad670f929375a3d98cdd9710438a14e}{ASSegment}.

\hypertarget{classAS4Segment_a3a0532e5348f9512536943d16242e022}{
\index{AS4Segment@{AS4Segment}!wire\_\-size@{wire\_\-size}}
\index{wire\_\-size@{wire\_\-size}!AS4Segment@{AS4Segment}}
\subsubsection[{wire\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t AS4Segment::wire\_\-size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classAS4Segment_a3a0532e5348f9512536943d16242e022}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} size of \hyperlink{protocolthe-p}{the} list on \hyperlink{protocolthe-p}{the} wire. 
\end{DoxyReturn}


Reimplemented from \hyperlink{classASSegment_a4e7dbd94c81c53ca29db098fed09c58d}{ASSegment}.



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