\hypertarget{classTopologyEntry}{
\section{TopologyEntry Class Reference}
\label{classTopologyEntry}\index{TopologyEntry@{TopologyEntry}}
}


A topology control record (TC).  




{\ttfamily \#include $<$topology.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTopologyEntry_a992b45b9337a2edfdd503b0a5dd98afd}{
{\bfseries TopologyEntry} (\hyperlink{classEventLoop}{EventLoop} \&ev, \hyperlink{classTopologyManager}{TopologyManager} $\ast$parent, \hyperlink{structOlsrTypes_a8ae1686d6bc0ed73f5d34126ae591c86}{OlsrTypes::TopologyID} id, const \hyperlink{classIPv4}{IPv4} \&dest, const \hyperlink{classIPv4}{IPv4} \&lasthop, const uint16\_\-t distance, const uint16\_\-t seqno, const \hyperlink{classTimeVal}{TimeVal} \&vtime)}
\label{classTopologyEntry_a992b45b9337a2edfdd503b0a5dd98afd}

\item 
\hypertarget{classTopologyEntry_ac54d453d305f3a2b2f783873712f69f8}{
\hyperlink{structOlsrTypes_a8ae1686d6bc0ed73f5d34126ae591c86}{OlsrTypes::TopologyID} {\bfseries id} () const }
\label{classTopologyEntry_ac54d453d305f3a2b2f783873712f69f8}

\item 
\hypertarget{classTopologyEntry_addc0ce95a4c6df9854d517705b9d21db}{
\hyperlink{classIPv4}{IPv4} {\bfseries destination} () const }
\label{classTopologyEntry_addc0ce95a4c6df9854d517705b9d21db}

\item 
\hypertarget{classTopologyEntry_a240a27c8504cd98963718f5272a8b7f1}{
\hyperlink{classIPv4}{IPv4} {\bfseries lasthop} () const }
\label{classTopologyEntry_a240a27c8504cd98963718f5272a8b7f1}

\item 
\hypertarget{classTopologyEntry_aea8b5ec7424e4a8c2ee4f5bc75466525}{
uint16\_\-t {\bfseries distance} () const }
\label{classTopologyEntry_aea8b5ec7424e4a8c2ee4f5bc75466525}

\item 
\hypertarget{classTopologyEntry_a82ec3fcfda71366b8bd4ca410fbed2a5}{
uint16\_\-t {\bfseries seqno} () const }
\label{classTopologyEntry_a82ec3fcfda71366b8bd4ca410fbed2a5}

\item 
\hypertarget{classTopologyEntry_a4663fe229ef1ea49f2df4ce3006b7090}{
void {\bfseries set\_\-distance} (const uint16\_\-t d)}
\label{classTopologyEntry_a4663fe229ef1ea49f2df4ce3006b7090}

\item 
\hyperlink{classTimeVal}{TimeVal} \hyperlink{classTopologyEntry_a0b349fa0b53d05a4203682d05bd208e9}{time\_\-remaining} () const 
\item 
void \hyperlink{classTopologyEntry_aca276966c62763fe0f5a809a7abc96cf}{update\_\-timer} (const \hyperlink{classTimeVal}{TimeVal} \&vtime)
\begin{DoxyCompactList}\small\item\em Update \hyperlink{protocolthe-p}{the} TopologyEntry's expiry timer. \item\end{DoxyCompactList}\item 
\hypertarget{classTopologyEntry_a386b1ca8b4252f2496fe9df3bc3f88fe}{
void \hyperlink{classTopologyEntry_a386b1ca8b4252f2496fe9df3bc3f88fe}{event\_\-dead} ()}
\label{classTopologyEntry_a386b1ca8b4252f2496fe9df3bc3f88fe}

\begin{DoxyCompactList}\small\item\em Callback method to: delete a dying \hyperlink{classTopologyEntry}{TopologyEntry}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTopologyEntry_a17a3d8c6bd7b781f20e80ea4cf1bc876}{
\hyperlink{classEventLoop}{EventLoop} \& {\bfseries \_\-ev}}
\label{classTopologyEntry_a17a3d8c6bd7b781f20e80ea4cf1bc876}

\item 
\hypertarget{classTopologyEntry_ae5fdfc9d1a1c2d36baef7f2d572cf3c3}{
\hyperlink{classTopologyManager}{TopologyManager} $\ast$ {\bfseries \_\-parent}}
\label{classTopologyEntry_ae5fdfc9d1a1c2d36baef7f2d572cf3c3}

\item 
\hypertarget{classTopologyEntry_a8286cb2d5b8339a1e527e8d2869ba967}{
\hyperlink{structOlsrTypes_a8ae1686d6bc0ed73f5d34126ae591c86}{OlsrTypes::TopologyID} \hyperlink{classTopologyEntry_a8286cb2d5b8339a1e527e8d2869ba967}{\_\-id}}
\label{classTopologyEntry_a8286cb2d5b8339a1e527e8d2869ba967}

\begin{DoxyCompactList}\small\item\em unique identifier. \item\end{DoxyCompactList}\item 
\hypertarget{classTopologyEntry_ace71ffbc844bf51675cd1e80d1f194a4}{
\hyperlink{classIPv4}{IPv4} \hyperlink{classTopologyEntry_ace71ffbc844bf51675cd1e80d1f194a4}{\_\-destination}}
\label{classTopologyEntry_ace71ffbc844bf51675cd1e80d1f194a4}

\begin{DoxyCompactList}\small\item\em destination address. \item\end{DoxyCompactList}\item 
\hypertarget{classTopologyEntry_a0df93ac96f84d0a8ed23425e853b3aa8}{
\hyperlink{classIPv4}{IPv4} \hyperlink{classTopologyEntry_a0df93ac96f84d0a8ed23425e853b3aa8}{\_\-lasthop}}
\label{classTopologyEntry_a0df93ac96f84d0a8ed23425e853b3aa8}

\begin{DoxyCompactList}\small\item\em The last hop to reach \_\-dest. \item\end{DoxyCompactList}\item 
\hypertarget{classTopologyEntry_aab4e028f31102d7074c47f48725e51d1}{
uint16\_\-t \hyperlink{classTopologyEntry_aab4e028f31102d7074c47f48725e51d1}{\_\-distance}}
\label{classTopologyEntry_aab4e028f31102d7074c47f48725e51d1}

\begin{DoxyCompactList}\small\item\em The number of hops from \hyperlink{protocolthe-p}{the} origin to \hyperlink{protocolthe-p}{the} neighbor advertised in this TC entry. \item\end{DoxyCompactList}\item 
\hypertarget{classTopologyEntry_a7a046f61804adb86a226d82dfe3604c9}{
uint16\_\-t \hyperlink{classTopologyEntry_a7a046f61804adb86a226d82dfe3604c9}{\_\-seqno}}
\label{classTopologyEntry_a7a046f61804adb86a226d82dfe3604c9}

\begin{DoxyCompactList}\small\item\em The ANSN of this entry. \item\end{DoxyCompactList}\item 
\hypertarget{classTopologyEntry_a538743063e12dbbe61b131d14253643c}{
\hyperlink{classXorpTimer}{XorpTimer} \hyperlink{classTopologyEntry_a538743063e12dbbe61b131d14253643c}{\_\-expiry\_\-timer}}
\label{classTopologyEntry_a538743063e12dbbe61b131d14253643c}

\begin{DoxyCompactList}\small\item\em The time at which this entry will expire. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A topology control record (TC). 

\subsection{Member Function Documentation}
\hypertarget{classTopologyEntry_a0b349fa0b53d05a4203682d05bd208e9}{
\index{TopologyEntry@{TopologyEntry}!time\_\-remaining@{time\_\-remaining}}
\index{time\_\-remaining@{time\_\-remaining}!TopologyEntry@{TopologyEntry}}
\subsubsection[{time\_\-remaining}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TimeVal} TopologyEntry::time\_\-remaining (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTopologyEntry_a0b349fa0b53d05a4203682d05bd208e9}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} amount of time remaining until this TC entry expires. 
\end{DoxyReturn}
\hypertarget{classTopologyEntry_aca276966c62763fe0f5a809a7abc96cf}{
\index{TopologyEntry@{TopologyEntry}!update\_\-timer@{update\_\-timer}}
\index{update\_\-timer@{update\_\-timer}!TopologyEntry@{TopologyEntry}}
\subsubsection[{update\_\-timer}]{\setlength{\rightskip}{0pt plus 5cm}void TopologyEntry::update\_\-timer (
\begin{DoxyParamCaption}
\item[{const {\bf TimeVal} \&}]{vtime}
\end{DoxyParamCaption}
)}}
\label{classTopologyEntry_aca276966c62763fe0f5a809a7abc96cf}


Update \hyperlink{protocolthe-p}{the} TopologyEntry's expiry timer. 


\begin{DoxyParams}{Parameters}
{\em vtime} & \hyperlink{protocolthe-p}{the} new value of \hyperlink{protocolthe-p}{the} expiry timer. \\
\hline
\end{DoxyParams}


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