\hypertarget{classMidEntry}{
\section{MidEntry Class Reference}
\label{classMidEntry}\index{MidEntry@{MidEntry}}
}


A multiple interface record (MID).  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classMidEntry_ac25bc4de52316cb9ff2f5a4bdd61d320}{
{\bfseries MidEntry} (\hyperlink{classEventLoop}{EventLoop} \&ev, \hyperlink{classTopologyManager}{TopologyManager} $\ast$parent, const \hyperlink{structOlsrTypes_a3f8d2bee6d4dd2200eb86e3de60c261d}{OlsrTypes::MidEntryID} id, const \hyperlink{classIPv4}{IPv4} \&iface\_\-addr, const \hyperlink{classIPv4}{IPv4} \&main\_\-addr, const uint16\_\-t distance, const \hyperlink{classTimeVal}{TimeVal} \&vtime)}
\label{classMidEntry_ac25bc4de52316cb9ff2f5a4bdd61d320}

\item 
\hypertarget{classMidEntry_a2acf8010a132df398d6f5d76a8a0f395}{
\hyperlink{structOlsrTypes_a3f8d2bee6d4dd2200eb86e3de60c261d}{OlsrTypes::MidEntryID} {\bfseries id} () const }
\label{classMidEntry_a2acf8010a132df398d6f5d76a8a0f395}

\item 
\hypertarget{classMidEntry_ae0695fb47f0efebaa1e839343361be9d}{
\hyperlink{classIPv4}{IPv4} {\bfseries iface\_\-addr} () const }
\label{classMidEntry_ae0695fb47f0efebaa1e839343361be9d}

\item 
\hypertarget{classMidEntry_acde4a944b86b86886e7d22db8c9bb2b3}{
\hyperlink{classIPv4}{IPv4} {\bfseries main\_\-addr} () const }
\label{classMidEntry_acde4a944b86b86886e7d22db8c9bb2b3}

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

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

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

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

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

\item 
\hypertarget{classMidEntry_a33cb4fe1d721a610cc8d668baa5b3eb7}{
\hyperlink{structOlsrTypes_a3f8d2bee6d4dd2200eb86e3de60c261d}{OlsrTypes::MidEntryID} {\bfseries \_\-id}}
\label{classMidEntry_a33cb4fe1d721a610cc8d668baa5b3eb7}

\item 
\hypertarget{classMidEntry_af1787390cbd99419e134e94419fa1401}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-iface\_\-addr}}
\label{classMidEntry_af1787390cbd99419e134e94419fa1401}

\item 
\hypertarget{classMidEntry_a9bc898bff57db1441cb3e664d6362427}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-main\_\-addr}}
\label{classMidEntry_a9bc898bff57db1441cb3e664d6362427}

\item 
\hypertarget{classMidEntry_a85a13814909b37506a4490a4244d3c9f}{
uint16\_\-t {\bfseries \_\-distance}}
\label{classMidEntry_a85a13814909b37506a4490a4244d3c9f}

\item 
\hypertarget{classMidEntry_a57cabdf9f463f4d8e3ed3dc69b50d30e}{
\hyperlink{classXorpTimer}{XorpTimer} {\bfseries \_\-expiry\_\-timer}}
\label{classMidEntry_a57cabdf9f463f4d8e3ed3dc69b50d30e}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
A multiple interface record (MID). There is one \hyperlink{classMidEntry}{MidEntry} per interface address advertised by an OLSR peer. As such, a primary address may be associated with multiple MID entries. 

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


Update \hyperlink{protocolthe-p}{the} MidEntry'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}
