\hypertarget{classLocalData}{
\section{LocalData Class Reference}
\label{classLocalData}\index{LocalData@{LocalData}}
}


Data that applies to all BGP peerings.  




{\ttfamily \#include $<$local\_\-data.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classLocalData_a4011f00d30b1cadae45f65db3ca046a9}{
{\bfseries LocalData} (\hyperlink{classEventLoop}{EventLoop} \&eventloop)}
\label{classLocalData_a4011f00d30b1cadae45f65db3ca046a9}

\item 
const \hyperlink{classAsNum}{AsNum} \& \hyperlink{classLocalData_ae784617fed8d1a5d7af24800d5d3e7eb}{get\_\-as} () const 
\item 
\hypertarget{classLocalData_a900793d43a4cea4375d34fd5cb9664ed}{
void \hyperlink{classLocalData_a900793d43a4cea4375d34fd5cb9664ed}{set\_\-as} (const \hyperlink{classAsNum}{AsNum} \&a)}
\label{classLocalData_a900793d43a4cea4375d34fd5cb9664ed}

\begin{DoxyCompactList}\small\item\em Set this routers AS number. \item\end{DoxyCompactList}\item 
bool \hyperlink{classLocalData_a0d9c6f45eeb7b0b60b4d70010e9a66c8}{use\_\-4byte\_\-asnums} () const 
\item 
\hypertarget{classLocalData_ab8dd3db3b01107d9e26ac60fe28e59fb}{
void \hyperlink{classLocalData_ab8dd3db3b01107d9e26ac60fe28e59fb}{set\_\-use\_\-4byte\_\-asnums} (bool use\_\-4byte\_\-asnums)}
\label{classLocalData_ab8dd3db3b01107d9e26ac60fe28e59fb}

\begin{DoxyCompactList}\small\item\em Set whether to send 2 or 4 byte AS numbers. \item\end{DoxyCompactList}\item 
const \hyperlink{classIPv4}{IPv4} \& \hyperlink{classLocalData_ac83099217b461c8dcf31c143f86813ab}{get\_\-id} () const 
\item 
\hypertarget{classLocalData_a279640f879d8d1978483c51223f3ff4c}{
void \hyperlink{classLocalData_a279640f879d8d1978483c51223f3ff4c}{set\_\-id} (const \hyperlink{classIPv4}{IPv4} \&i)}
\label{classLocalData_a279640f879d8d1978483c51223f3ff4c}

\begin{DoxyCompactList}\small\item\em Set this routers ID. \item\end{DoxyCompactList}\item 
const \hyperlink{classAsNum}{AsNum} \& \hyperlink{classLocalData_afa922016ca339bfd6ccf0b89d253deb1}{get\_\-confed\_\-id} () const 
\item 
\hypertarget{classLocalData_ae76110b4f763fa66dbbcd88d129a138e}{
void \hyperlink{classLocalData_ae76110b4f763fa66dbbcd88d129a138e}{set\_\-confed\_\-id} (const \hyperlink{classAsNum}{AsNum} \&confed\_\-id)}
\label{classLocalData_ae76110b4f763fa66dbbcd88d129a138e}

\begin{DoxyCompactList}\small\item\em Set this routers confederation ID. \item\end{DoxyCompactList}\item 
const \hyperlink{classIPv4}{IPv4} \& \hyperlink{classLocalData_a434441586ee7addf04eab60fed3d562d}{get\_\-cluster\_\-id} () const 
\item 
\hypertarget{classLocalData_a8cdd300fec1d5193cc653fd372820f0d}{
void \hyperlink{classLocalData_a8cdd300fec1d5193cc653fd372820f0d}{set\_\-cluster\_\-id} (const \hyperlink{classIPv4}{IPv4} \&cluster\_\-id)}
\label{classLocalData_a8cdd300fec1d5193cc653fd372820f0d}

\begin{DoxyCompactList}\small\item\em Set this routers cluster ID. \item\end{DoxyCompactList}\item 
\hypertarget{classLocalData_a8c1683b2031fc54477b1c00c9b55403c}{
const bool \& \hyperlink{classLocalData_a8c1683b2031fc54477b1c00c9b55403c}{get\_\-route\_\-reflector} () const }
\label{classLocalData_a8c1683b2031fc54477b1c00c9b55403c}

\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} route reflection status. \item\end{DoxyCompactList}\item 
\hypertarget{classLocalData_abf89efef0cce6a2b60985e89d4ec5fa9}{
void \hyperlink{classLocalData_abf89efef0cce6a2b60985e89d4ec5fa9}{set\_\-route\_\-reflector} (const bool route\_\-reflector)}
\label{classLocalData_abf89efef0cce6a2b60985e89d4ec5fa9}

\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} route reflection status. \item\end{DoxyCompactList}\item 
\hypertarget{classLocalData_a3870b3ad84581e6fb50129c394cad657}{
\hyperlink{classDamping}{Damping} \& \hyperlink{classLocalData_a3870b3ad84581e6fb50129c394cad657}{get\_\-damping} ()}
\label{classLocalData_a3870b3ad84581e6fb50129c394cad657}

\begin{DoxyCompactList}\small\item\em Return all \hyperlink{protocolthe-p}{the} route flap damping state. \item\end{DoxyCompactList}\item 
\hypertarget{classLocalData_aea16a8d140469072005ab6254ae514f7}{
void {\bfseries set\_\-jitter} (bool jitter)}
\label{classLocalData_aea16a8d140469072005ab6254ae514f7}

\item 
\hypertarget{classLocalData_ab965aba49b9e42097169c095419cbc2e}{
bool {\bfseries get\_\-jitter} () const }
\label{classLocalData_ab965aba49b9e42097169c095419cbc2e}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classLocalData_a3395fe2ea7baac30ba02a6d481db8a0f}{
\hyperlink{classAsNum}{AsNum} {\bfseries \_\-as}}
\label{classLocalData_a3395fe2ea7baac30ba02a6d481db8a0f}

\item 
\hypertarget{classLocalData_ab648b035f063435f5e75bbde73ba0315}{
bool {\bfseries \_\-use\_\-4byte\_\-asnums}}
\label{classLocalData_ab648b035f063435f5e75bbde73ba0315}

\item 
\hypertarget{classLocalData_acaa2976741a852aa825feb75d7ff9c22}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-id}}
\label{classLocalData_acaa2976741a852aa825feb75d7ff9c22}

\item 
\hypertarget{classLocalData_ac1243d1ab0913fd17f50be5d955b33ff}{
\hyperlink{classAsNum}{AsNum} {\bfseries \_\-confed\_\-id}}
\label{classLocalData_ac1243d1ab0913fd17f50be5d955b33ff}

\item 
\hypertarget{classLocalData_a07ddd39660f17f7e7b97ebd074caec7c}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-cluster\_\-id}}
\label{classLocalData_a07ddd39660f17f7e7b97ebd074caec7c}

\item 
\hypertarget{classLocalData_a4a4083c72c74ca5b7e6fcfcbb09285ba}{
bool {\bfseries \_\-route\_\-reflector}}
\label{classLocalData_a4a4083c72c74ca5b7e6fcfcbb09285ba}

\item 
\hypertarget{classLocalData_a5cc1a6e15d1d7017434740b9cc3d7d46}{
\hyperlink{classDamping}{Damping} {\bfseries \_\-damping}}
\label{classLocalData_a5cc1a6e15d1d7017434740b9cc3d7d46}

\item 
\hypertarget{classLocalData_a9fb46ac80140fd17eaf824307ef4317f}{
bool {\bfseries \_\-jitter}}
\label{classLocalData_a9fb46ac80140fd17eaf824307ef4317f}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Data that applies to all BGP peerings. Currently this is just our AS number and router ID. 

\subsection{Member Function Documentation}
\hypertarget{classLocalData_ae784617fed8d1a5d7af24800d5d3e7eb}{
\index{LocalData@{LocalData}!get\_\-as@{get\_\-as}}
\index{get\_\-as@{get\_\-as}!LocalData@{LocalData}}
\subsubsection[{get\_\-as}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf AsNum}\& LocalData::get\_\-as (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classLocalData_ae784617fed8d1a5d7af24800d5d3e7eb}
\begin{DoxyReturn}{Returns}
This routers AS number. 
\end{DoxyReturn}
\hypertarget{classLocalData_a434441586ee7addf04eab60fed3d562d}{
\index{LocalData@{LocalData}!get\_\-cluster\_\-id@{get\_\-cluster\_\-id}}
\index{get\_\-cluster\_\-id@{get\_\-cluster\_\-id}!LocalData@{LocalData}}
\subsubsection[{get\_\-cluster\_\-id}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf IPv4}\& LocalData::get\_\-cluster\_\-id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classLocalData_a434441586ee7addf04eab60fed3d562d}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} cluster ID of this router. 
\end{DoxyReturn}
\hypertarget{classLocalData_afa922016ca339bfd6ccf0b89d253deb1}{
\index{LocalData@{LocalData}!get\_\-confed\_\-id@{get\_\-confed\_\-id}}
\index{get\_\-confed\_\-id@{get\_\-confed\_\-id}!LocalData@{LocalData}}
\subsubsection[{get\_\-confed\_\-id}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf AsNum}\& LocalData::get\_\-confed\_\-id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classLocalData_afa922016ca339bfd6ccf0b89d253deb1}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} confederation ID of this router if set. 
\end{DoxyReturn}
\hypertarget{classLocalData_ac83099217b461c8dcf31c143f86813ab}{
\index{LocalData@{LocalData}!get\_\-id@{get\_\-id}}
\index{get\_\-id@{get\_\-id}!LocalData@{LocalData}}
\subsubsection[{get\_\-id}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf IPv4}\& LocalData::get\_\-id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classLocalData_ac83099217b461c8dcf31c143f86813ab}
\begin{DoxyReturn}{Returns}
This routers ID. 
\end{DoxyReturn}
\hypertarget{classLocalData_a0d9c6f45eeb7b0b60b4d70010e9a66c8}{
\index{LocalData@{LocalData}!use\_\-4byte\_\-asnums@{use\_\-4byte\_\-asnums}}
\index{use\_\-4byte\_\-asnums@{use\_\-4byte\_\-asnums}!LocalData@{LocalData}}
\subsubsection[{use\_\-4byte\_\-asnums}]{\setlength{\rightskip}{0pt plus 5cm}bool LocalData::use\_\-4byte\_\-asnums (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classLocalData_a0d9c6f45eeb7b0b60b4d70010e9a66c8}
\begin{DoxyReturn}{Returns}
true if we use 4 byte AS numbers. 
\end{DoxyReturn}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/bgp/local\_\-data.hh\end{DoxyCompactItemize}
