\hypertarget{classRouteEntry}{
\section{RouteEntry$<$ A $>$ Class Template Reference}
\label{classRouteEntry}\index{RouteEntry@{RouteEntry}}
}


An OLSR internal route entry.  




{\ttfamily \#include $<$route\_\-manager.hh$>$}

Inheritance diagram for RouteEntry$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4.000000cm]{classRouteEntry}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{classRouteEntry_a10865d2dca3d9067e517dedf133c459d}{PathType} \{ {\bfseries intra\_\-area} =  1, 
{\bfseries inter\_\-area} =  2, 
{\bfseries type1} =  3, 
{\bfseries type2} =  4
 \}
\begin{DoxyCompactList}\small\item\em The ordering is important used to select \hyperlink{protocolthe-p}{the} best route. \item\end{DoxyCompactList}\item 
\hypertarget{classRouteEntry_a0b4f21ff889f0b395cabe31a5df5e829}{
typedef A {\bfseries Addr}}
\label{classRouteEntry_a0b4f21ff889f0b395cabe31a5df5e829}

\item 
\hypertarget{classRouteEntry_a334c20a6bbeebfa61a4bb9c8ef83ec46}{
typedef \hyperlink{classIPNet}{IPNet}$<$ A $>$ {\bfseries Net}}
\label{classRouteEntry_a334c20a6bbeebfa61a4bb9c8ef83ec46}

\item 
\hypertarget{classRouteEntry_a8611cd321532c699e0fcf60a79edaa02}{
typedef \hyperlink{classRouteEntryOrigin}{RouteEntryOrigin}$<$ A $>$ {\bfseries Origin}}
\label{classRouteEntry_a8611cd321532c699e0fcf60a79edaa02}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRouteEntry_ae69760d49619a0650856dadadd1b0465}{
\hyperlink{structOlsrTypes_a73921e658109f18cf96bfa1431400de3}{OlsrTypes::VertexType} {\bfseries destination\_\-type} () const }
\label{classRouteEntry_ae69760d49619a0650856dadadd1b0465}

\item 
void \hyperlink{classRouteEntry_a5d0a54f1e26c7e8135408a257ad64a82}{set\_\-destination\_\-type} (const \hyperlink{structOlsrTypes_a73921e658109f18cf96bfa1431400de3}{OlsrTypes::VertexType} vt)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} destination in this route entry. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRouteEntry_a6167bbe6b006002079e735e6aee78353}{direct} () const 
\item 
void \hyperlink{classRouteEntry_ab282ab7fc357047f8f945e16cafd8b72}{set\_\-direct} (bool is\_\-direct)
\begin{DoxyCompactList}\small\item\em Set if \hyperlink{protocolthe-p}{the} destination is directly connected. \item\end{DoxyCompactList}\item 
\hyperlink{classIPv4}{IPv4} \hyperlink{classRouteEntry_afed14abd09220bb289f8221727af216f}{nexthop} () const 
\item 
void \hyperlink{classRouteEntry_adf6e94d6643b4012c6860c8b2e39859b}{set\_\-nexthop} (const \hyperlink{classIPv4}{IPv4} \&nexthop)
\begin{DoxyCompactList}\small\item\em Set protocol address of next hop. \item\end{DoxyCompactList}\item 
\hyperlink{structOlsrTypes_a0be5017ad053311658089d9a795c63ac}{OlsrTypes::FaceID} \hyperlink{classRouteEntry_a7fa19981bfc3e1a7a109b52d5ca1340e}{faceid} ()
\item 
void \hyperlink{classRouteEntry_a0fc62ed6a1b6431ead004b9b64d95646}{set\_\-faceid} (const \hyperlink{structOlsrTypes_a0be5017ad053311658089d9a795c63ac}{OlsrTypes::FaceID} faceid)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} ID of \hyperlink{protocolthe-p}{the} interface used to reach \hyperlink{protocolthe-p}{the} destination. \item\end{DoxyCompactList}\item 
uint32\_\-t \hyperlink{classRouteEntry_a14da2459bac55281b534cdf57ac8de1d}{cost} () const 
\item 
void \hyperlink{classRouteEntry_a7d62ab1e87fe1e63752eb8949fe63d65}{set\_\-cost} (const uint32\_\-t cost)
\begin{DoxyCompactList}\small\item\em Set OLSR protocol cost of route. \item\end{DoxyCompactList}\item 
\hyperlink{classIPv4}{IPv4} \hyperlink{classRouteEntry_a9998f149d1ec711c5a718a9ea1ac7901}{originator} () const 
\item 
void \hyperlink{classRouteEntry_a9a9a3c8acabfd516708f5f2db8900b0b}{set\_\-originator} (const \hyperlink{classIPv4}{IPv4} \&originator)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} originator of this route. \item\end{DoxyCompactList}\item 
\hyperlink{classIPv4}{IPv4} \hyperlink{classRouteEntry_ada0c626b06f1a190c1a73f78f0054b4c}{main\_\-address} () const 
\item 
void \hyperlink{classRouteEntry_a579679ec2622df08e685c8bef81c3cbc}{set\_\-main\_\-address} (const \hyperlink{classIPv4}{IPv4} \&main\_\-addr)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} main address of \hyperlink{protocolthe-p}{the} destination. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRouteEntry_a95171a1527594f2829ccef34393a430c}{filtered} () const 
\item 
void \hyperlink{classRouteEntry_a42fa8633c40f301b3f743defbf71ef28}{set\_\-filtered} (const bool was\_\-filtered)
\begin{DoxyCompactList}\small\item\em Set if this route has been filtered by policy filters. \item\end{DoxyCompactList}\item 
string \hyperlink{classRouteEntry_ab147ec72867cdde9281dcfa93ee3a530}{str} ()
\item 
\hypertarget{classRouteEntry_a5f725d60636ab51fe233c37e46395503}{
void {\bfseries set\_\-destination\_\-type} (\hyperlink{structOspfTypes_a286fe55f20721d44a78924810daf2c59}{OspfTypes::VertexType} destination\_\-type)}
\label{classRouteEntry_a5f725d60636ab51fe233c37e46395503}

\item 
\hypertarget{classRouteEntry_ab4281ceb10220b997625e77484968dd8}{
\hyperlink{structOspfTypes_a286fe55f20721d44a78924810daf2c59}{OspfTypes::VertexType} {\bfseries get\_\-destination\_\-type} () const }
\label{classRouteEntry_ab4281ceb10220b997625e77484968dd8}

\item 
\hypertarget{classRouteEntry_af0cb2f581936aed23b39e0880c6248c8}{
void {\bfseries set\_\-discard} (bool discard)}
\label{classRouteEntry_af0cb2f581936aed23b39e0880c6248c8}

\item 
\hypertarget{classRouteEntry_ae25bceb92a18f2ede5e9e787bd8c13e8}{
bool {\bfseries get\_\-discard} () const }
\label{classRouteEntry_ae25bceb92a18f2ede5e9e787bd8c13e8}

\item 
\hypertarget{classRouteEntry_afffa4287d7f4ab46a17efbaa9cdf41e6}{
void {\bfseries set\_\-directly\_\-connected} (bool direct)}
\label{classRouteEntry_afffa4287d7f4ab46a17efbaa9cdf41e6}

\item 
\hypertarget{classRouteEntry_a20afb4260a8713d656fe91deaf950060}{
bool {\bfseries get\_\-directly\_\-connected} () const }
\label{classRouteEntry_a20afb4260a8713d656fe91deaf950060}

\item 
\hypertarget{classRouteEntry_a46f8a932d11b4eaa8d3c96d277331b04}{
void {\bfseries set\_\-address} (uint32\_\-t address)}
\label{classRouteEntry_a46f8a932d11b4eaa8d3c96d277331b04}

\item 
\hypertarget{classRouteEntry_affba7088638571be52e17a3092cde307}{
uint32\_\-t {\bfseries get\_\-address} () const }
\label{classRouteEntry_affba7088638571be52e17a3092cde307}

\item 
\hypertarget{classRouteEntry_a1bdcba0684823da266deb06e51a3851e}{
void {\bfseries set\_\-router\_\-id} (\hyperlink{structOspfTypes_a8fc36f0cbcee50cfdb0d10b192aaa53a}{OspfTypes::RouterID} id)}
\label{classRouteEntry_a1bdcba0684823da266deb06e51a3851e}

\item 
\hypertarget{classRouteEntry_a8ac97ee70fe5a15cdd149b5e7150cb97}{
\hyperlink{structOspfTypes_a8fc36f0cbcee50cfdb0d10b192aaa53a}{OspfTypes::RouterID} {\bfseries get\_\-router\_\-id} () const }
\label{classRouteEntry_a8ac97ee70fe5a15cdd149b5e7150cb97}

\item 
\hypertarget{classRouteEntry_a66f6d2a1193ed7e0ed279d5dcc6732ff}{
void {\bfseries set\_\-area\_\-border\_\-router} (bool area\_\-border\_\-router)}
\label{classRouteEntry_a66f6d2a1193ed7e0ed279d5dcc6732ff}

\item 
\hypertarget{classRouteEntry_a755f632407ce0ed0e51621617cb3f110}{
bool {\bfseries get\_\-area\_\-border\_\-router} () const }
\label{classRouteEntry_a755f632407ce0ed0e51621617cb3f110}

\item 
\hypertarget{classRouteEntry_ae3266b5d5a28d89baa2ca5766ef360d9}{
void {\bfseries set\_\-as\_\-boundary\_\-router} (bool as\_\-boundary\_\-router)}
\label{classRouteEntry_ae3266b5d5a28d89baa2ca5766ef360d9}

\item 
\hypertarget{classRouteEntry_a78f8a626d8b08d54b00710228e5cb83e}{
bool {\bfseries get\_\-as\_\-boundary\_\-router} () const }
\label{classRouteEntry_a78f8a626d8b08d54b00710228e5cb83e}

\item 
\hypertarget{classRouteEntry_a25d67094788e210d1169b18a873a7e97}{
void {\bfseries set\_\-area} (\hyperlink{structOspfTypes_a8276e5e81192074d7c95e445995d18c6}{OspfTypes::AreaID} area)}
\label{classRouteEntry_a25d67094788e210d1169b18a873a7e97}

\item 
\hypertarget{classRouteEntry_a4154778570f775b4784e1faddcc39c45}{
\hyperlink{structOspfTypes_a8276e5e81192074d7c95e445995d18c6}{OspfTypes::AreaID} {\bfseries get\_\-area} () const }
\label{classRouteEntry_a4154778570f775b4784e1faddcc39c45}

\item 
\hypertarget{classRouteEntry_ae46b32b547475abb93829be4e31a33e7}{
void {\bfseries set\_\-path\_\-type} (\hyperlink{classRouteEntry_a10865d2dca3d9067e517dedf133c459d}{PathType} path\_\-type)}
\label{classRouteEntry_ae46b32b547475abb93829be4e31a33e7}

\item 
\hypertarget{classRouteEntry_aea8aea70f21cbeb3083090042e86eb94}{
\hyperlink{classRouteEntry_a10865d2dca3d9067e517dedf133c459d}{PathType} {\bfseries get\_\-path\_\-type} () const }
\label{classRouteEntry_aea8aea70f21cbeb3083090042e86eb94}

\item 
\hypertarget{classRouteEntry_a18bbd8173f158ea534599482e68a994a}{
void {\bfseries set\_\-cost} (uint32\_\-t cost)}
\label{classRouteEntry_a18bbd8173f158ea534599482e68a994a}

\item 
\hypertarget{classRouteEntry_a3df2c2744a0a58b7b3a5d603ba8d267e}{
uint32\_\-t {\bfseries get\_\-cost} () const }
\label{classRouteEntry_a3df2c2744a0a58b7b3a5d603ba8d267e}

\item 
\hypertarget{classRouteEntry_a3d1d89b4980d711de2747fd24f2b99fb}{
void {\bfseries set\_\-type\_\-2\_\-cost} (uint32\_\-t type\_\-2\_\-cost)}
\label{classRouteEntry_a3d1d89b4980d711de2747fd24f2b99fb}

\item 
\hypertarget{classRouteEntry_ae378f381b2af258f8a911fb4c0d97342}{
uint32\_\-t {\bfseries get\_\-type\_\-2\_\-cost} () const }
\label{classRouteEntry_ae378f381b2af258f8a911fb4c0d97342}

\item 
\hypertarget{classRouteEntry_a564fdee6811d5e0a7353b7f6a0008685}{
void {\bfseries set\_\-nexthop} (A nexthop)}
\label{classRouteEntry_a564fdee6811d5e0a7353b7f6a0008685}

\item 
\hypertarget{classRouteEntry_a724c0c9cdce6e0526d2d73301adcfb98}{
A {\bfseries get\_\-nexthop} () const }
\label{classRouteEntry_a724c0c9cdce6e0526d2d73301adcfb98}

\item 
\hypertarget{classRouteEntry_a7cc133bd8f9be39fc98c0aec79afce52}{
void {\bfseries set\_\-nexthop\_\-id} (uint32\_\-t nexthop\_\-id)}
\label{classRouteEntry_a7cc133bd8f9be39fc98c0aec79afce52}

\item 
\hypertarget{classRouteEntry_a37ee93380928f5d54e479cdcd0ad4c20}{
uint32\_\-t {\bfseries get\_\-nexthop\_\-id} ()}
\label{classRouteEntry_a37ee93380928f5d54e479cdcd0ad4c20}

\item 
\hypertarget{classRouteEntry_ad4dc176763079dc4d73188619fa82de1}{
void {\bfseries set\_\-advertising\_\-router} (uint32\_\-t advertising\_\-router)}
\label{classRouteEntry_ad4dc176763079dc4d73188619fa82de1}

\item 
\hypertarget{classRouteEntry_a0c3026a0d642cbad5349953777ee703b}{
uint32\_\-t {\bfseries get\_\-advertising\_\-router} () const }
\label{classRouteEntry_a0c3026a0d642cbad5349953777ee703b}

\item 
\hypertarget{classRouteEntry_a39a324e5acc08f63a0ee824acfff6804}{
void {\bfseries set\_\-lsa} (\hyperlink{classref__ptr}{Lsa::LsaRef} lsar)}
\label{classRouteEntry_a39a324e5acc08f63a0ee824acfff6804}

\item 
\hypertarget{classRouteEntry_a219f5265db30289b05ae9f72b9bd3f21}{
\hyperlink{classref__ptr}{Lsa::LsaRef} {\bfseries get\_\-lsa} () const }
\label{classRouteEntry_a219f5265db30289b05ae9f72b9bd3f21}

\item 
\hypertarget{classRouteEntry_a43136b74f8fc1c40da482d28484d99a0}{
void {\bfseries set\_\-filtered} (bool filtered)}
\label{classRouteEntry_a43136b74f8fc1c40da482d28484d99a0}

\item 
\hypertarget{classRouteEntry_ab9dc303ed5183cd850003ae7ddbae112}{
bool {\bfseries get\_\-filtered} () const }
\label{classRouteEntry_ab9dc303ed5183cd850003ae7ddbae112}

\item 
\hypertarget{classRouteEntry_ab147ec72867cdde9281dcfa93ee3a530}{
string {\bfseries str} ()}
\label{classRouteEntry_ab147ec72867cdde9281dcfa93ee3a530}

\item 
\hyperlink{classRouteEntry_a3f4aae1f24a368b94df2e3881d1fd7cc}{RouteEntry} (\hyperlink{classRibVif}{RibVif} $\ast$vif, \hyperlink{classNextHop}{NextHop} $\ast$nexthop, const \hyperlink{classProtocol}{Protocol} \&protocol, uint32\_\-t metric)
\begin{DoxyCompactList}\small\item\em Constructor for a route entry. \item\end{DoxyCompactList}\item 
\hypertarget{classRouteEntry_a63ebdf2f623d792d854dbbb3434c9b35}{
virtual \hyperlink{classRouteEntry_a63ebdf2f623d792d854dbbb3434c9b35}{$\sim$RouteEntry} ()}
\label{classRouteEntry_a63ebdf2f623d792d854dbbb3434c9b35}

\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\item 
\hyperlink{classRibVif}{RibVif} $\ast$ \hyperlink{classRouteEntry_a24556f5617fcf3e3528d8f1fc03e710a}{vif} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} VIF. \item\end{DoxyCompactList}\item 
\hyperlink{classNextHop}{NextHop} $\ast$ \hyperlink{classRouteEntry_a5be9cc8108f1a3b0a9accce84826d4a5}{nexthop} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} \hyperlink{classNextHop}{NextHop} router. \item\end{DoxyCompactList}\item 
void \hyperlink{classRouteEntry_a6aab1127e721d160137f78f8ceb544f2}{set\_\-nexthop} (\hyperlink{classNextHop}{NextHop} $\ast$v)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} \hyperlink{classNextHop}{NextHop} router. \item\end{DoxyCompactList}\item 
uint16\_\-t \hyperlink{classRouteEntry_a9683d7ccff4fca19d64d38c1d9510bf7}{admin\_\-distance} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} Administrative Distance. \item\end{DoxyCompactList}\item 
void \hyperlink{classRouteEntry_aa27a4358d70ae3bf1733e1b80afac59a}{set\_\-admin\_\-distance} (uint16\_\-t ad)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} Administrative Distance. \item\end{DoxyCompactList}\item 
const \hyperlink{classProtocol}{Protocol} \& \hyperlink{classRouteEntry_a70008aa1b6804367c2cc4e4ed787a425}{protocol} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} routing protocol. \item\end{DoxyCompactList}\item 
\hypertarget{classRouteEntry_a254dcb60bb51a40c4f54e29fb1003a59}{
virtual string \hyperlink{classRouteEntry_a254dcb60bb51a40c4f54e29fb1003a59}{str} () const =0}
\label{classRouteEntry_a254dcb60bb51a40c4f54e29fb1003a59}

\begin{DoxyCompactList}\small\item\em Display \hyperlink{protocolthe-p}{the} route for debugging purposes. \item\end{DoxyCompactList}\item 
void \hyperlink{classRouteEntry_a11d4c0d3e6d90f7bfd096682055c74b4}{set\_\-metric} (uint32\_\-t metric)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} routing protocol metric on this route. \item\end{DoxyCompactList}\item 
uint32\_\-t \hyperlink{classRouteEntry_a310bc24fd1c43d67e35571788e9d94d2}{metric} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} routing protocol metric. \item\end{DoxyCompactList}\item 
\hyperlink{classRouteEntry_a86a875df1a6abf0251f24c3dd39f13ed}{RouteEntry} (const \hyperlink{classIPNet}{Net} \&n, const Addr \&nh, const string \&ifname, const string \&vifname, uint16\_\-t cost, \hyperlink{classRouteEntryOrigin}{Origin} $\ast$\&o, uint16\_\-t tag)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
\hypertarget{classRouteEntry_a227b5f230abcea4e86f5b83b5d15ab88}{
{\bfseries RouteEntry} (const \hyperlink{classIPNet}{Net} \&n, const Addr \&nh, const string \&ifname, const string \&vifname, uint16\_\-t cost, \hyperlink{classRouteEntryOrigin}{Origin} $\ast$\&o, uint16\_\-t tag, const \hyperlink{classPolicyTags}{PolicyTags} \&policytags)}
\label{classRouteEntry_a227b5f230abcea4e86f5b83b5d15ab88}

\item 
\hyperlink{classRouteEntry_a63ebdf2f623d792d854dbbb3434c9b35}{$\sim$RouteEntry} ()
\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\item 
\hypertarget{classRouteEntry_a7e4353ce986730a85e522e38032d996d}{
const \hyperlink{classIPNet}{IPNet}$<$ A $>$ \& \hyperlink{classRouteEntry_a7e4353ce986730a85e522e38032d996d}{net} () const }
\label{classRouteEntry_a7e4353ce986730a85e522e38032d996d}

\begin{DoxyCompactList}\small\item\em Get network. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRouteEntry_a969d5eccd89b51d0c9dd87e363382c26}{set\_\-nexthop} (const A \&nh)
\begin{DoxyCompactList}\small\item\em Set next hop. \item\end{DoxyCompactList}\item 
const A \& \hyperlink{classRouteEntry_a55a50df85e9ff90b69aff70787a5dc11}{nexthop} () const 
\begin{DoxyCompactList}\small\item\em Get next hop. \item\end{DoxyCompactList}\item 
const string \& \hyperlink{classRouteEntry_a41e56a1b8741617e896639d727f6eb38}{ifname} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} outgoing interface name. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRouteEntry_ae1af7ac97852912b7a861f4324b0e367}{set\_\-ifname} (const string \&ifname)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} outgoing interface name. \item\end{DoxyCompactList}\item 
const string \& \hyperlink{classRouteEntry_a81e2d96d1cc28cb5c141af9b65cf73af}{vifname} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} outgoing vif name. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRouteEntry_a86029a36ad0b99f0cc445414bdcbac77}{set\_\-vifname} (const string \&vifname)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} outgoing vif name. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRouteEntry_af82dfddc74d88ce71627b3253aa5bda1}{set\_\-cost} (uint16\_\-t cost)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} cost metric. \item\end{DoxyCompactList}\item 
uint16\_\-t \hyperlink{classRouteEntry_a22c3abf6e9036081d4451fc9deeebaf9}{cost} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} cost metric. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRouteEntry_ab7066e7283e3adb06ee110fdd44c7c78}{set\_\-origin} (\hyperlink{classRouteEntryOrigin}{Origin} $\ast$origin)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} origin. \item\end{DoxyCompactList}\item 
const \hyperlink{classRouteEntryOrigin}{Origin} $\ast$ \hyperlink{classRouteEntry_a21fe49cb50f3a0bf66e408e94b374bd1}{origin} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} origin. \item\end{DoxyCompactList}\item 
\hyperlink{classRouteEntryOrigin}{Origin} $\ast$ \hyperlink{classRouteEntry_aa3888545fc3c89d6b478eef7c74ad4ba}{origin} ()
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} origin. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRouteEntry_ad88e323cf5f4216709ae36bf049426cf}{set\_\-tag} (uint16\_\-t tag)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} tag value. \item\end{DoxyCompactList}\item 
uint16\_\-t \hyperlink{classRouteEntry_a0fcb2a7127a892be388c7f20c542c4d0}{tag} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} tag. \item\end{DoxyCompactList}\item 
\hypertarget{classRouteEntry_aef17b6203dde8dda239660fb6fae0513}{
void \hyperlink{classRouteEntry_aef17b6203dde8dda239660fb6fae0513}{set\_\-timer} (const \hyperlink{classXorpTimer}{XorpTimer} \&t)}
\label{classRouteEntry_aef17b6203dde8dda239660fb6fae0513}

\begin{DoxyCompactList}\small\item\em Set a Timer Event associated with this route. \item\end{DoxyCompactList}\item 
\hypertarget{classRouteEntry_a9136f30335c665133d294eccc60314f1}{
const \hyperlink{classXorpTimer}{XorpTimer} \& \hyperlink{classRouteEntry_a9136f30335c665133d294eccc60314f1}{timer} () const }
\label{classRouteEntry_a9136f30335c665133d294eccc60314f1}

\begin{DoxyCompactList}\small\item\em Get Timer associated with route. \item\end{DoxyCompactList}\item 
const \hyperlink{classPolicyTags}{PolicyTags} \& \hyperlink{classRouteEntry_ad49bda8e1c8a676900fb97a796eaf200}{policytags} () const 
\item 
\hypertarget{classRouteEntry_a1af29711400f008273d7fe12b65ed78a}{
\hyperlink{classPolicyTags}{PolicyTags} \& {\bfseries policytags} ()}
\label{classRouteEntry_a1af29711400f008273d7fe12b65ed78a}

\item 
bool \hyperlink{classRouteEntry_a2518fd7cebad2a09f68ea4ccd7fac979}{set\_\-policytags} (const \hyperlink{classPolicyTags}{PolicyTags} \&tags)
\begin{DoxyCompactList}\small\item\em Replace policy-\/tags of route. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRouteEntry_a95171a1527594f2829ccef34393a430c}{filtered} () const 
\item 
void \hyperlink{classRouteEntry_af16c3fb88d166384934589567fbfbd5f}{set\_\-filtered} (bool v)
\begin{DoxyCompactList}\small\item\em Set if route is accepted or rejected. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRouteEntry_a50ae81ff46e8343fcf6b1313c0865b8d}{
void {\bfseries dissociate} ()}
\label{classRouteEntry_a50ae81ff46e8343fcf6b1313c0865b8d}

\item 
\hypertarget{classRouteEntry_a101f7f3bdc5ade9e305b28023dab5261}{
void {\bfseries associate} (\hyperlink{classRouteEntryOrigin}{Origin} $\ast$o)}
\label{classRouteEntry_a101f7f3bdc5ade9e305b28023dab5261}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRouteEntry_a30419955d2d6d83cb74305f2433a761d}{
\hyperlink{classRibVif}{RibVif} $\ast$ {\bfseries \_\-vif}}
\label{classRouteEntry_a30419955d2d6d83cb74305f2433a761d}

\item 
\hypertarget{classRouteEntry_acc1f3ee5e1b6f7b9f46c10eb8b27fd7f}{
\hyperlink{classNextHop}{NextHop} $\ast$ {\bfseries \_\-nexthop}}
\label{classRouteEntry_acc1f3ee5e1b6f7b9f46c10eb8b27fd7f}

\item 
\hypertarget{classRouteEntry_a0604bc736db8d6b7e8307fd448a1b4f8}{
const \hyperlink{classProtocol}{Protocol} \& {\bfseries \_\-protocol}}
\label{classRouteEntry_a0604bc736db8d6b7e8307fd448a1b4f8}

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

\item 
\hypertarget{classRouteEntry_a8957b48918600b3bbabf43fa6c929e39}{
uint32\_\-t {\bfseries \_\-metric}}
\label{classRouteEntry_a8957b48918600b3bbabf43fa6c929e39}

\item 
\hypertarget{classRouteEntry_a35e623b9301259dcf691b1c174cc9a61}{
\hyperlink{classIPNet}{Net} {\bfseries \_\-net}}
\label{classRouteEntry_a35e623b9301259dcf691b1c174cc9a61}

\item 
\hypertarget{classRouteEntry_a42a50c66c12213e8a59b05af09bf7251}{
Addr {\bfseries \_\-nh}}
\label{classRouteEntry_a42a50c66c12213e8a59b05af09bf7251}

\item 
\hypertarget{classRouteEntry_af42cda8494e7ef58b19b3ad10672c595}{
string {\bfseries \_\-ifname}}
\label{classRouteEntry_af42cda8494e7ef58b19b3ad10672c595}

\item 
\hypertarget{classRouteEntry_a1cbb0f152535321eb2015530fb23bc99}{
string {\bfseries \_\-vifname}}
\label{classRouteEntry_a1cbb0f152535321eb2015530fb23bc99}

\item 
\hypertarget{classRouteEntry_a9075c70c000bac72c1dcc3dfd95bb6c1}{
uint16\_\-t {\bfseries \_\-cost}}
\label{classRouteEntry_a9075c70c000bac72c1dcc3dfd95bb6c1}

\item 
\hypertarget{classRouteEntry_a0be454907f7c2ef6f689347c3f0eeca3}{
\hyperlink{classRouteEntryOrigin}{Origin} $\ast$ {\bfseries \_\-origin}}
\label{classRouteEntry_a0be454907f7c2ef6f689347c3f0eeca3}

\item 
\hypertarget{classRouteEntry_afe5682ea141e046d4af3cf1f4d4fbeda}{
uint16\_\-t {\bfseries \_\-tag}}
\label{classRouteEntry_afe5682ea141e046d4af3cf1f4d4fbeda}

\item 
\hypertarget{classRouteEntry_a42add6f3ecdc8058f6fb2f34acfda6d3}{
uint16\_\-t {\bfseries \_\-ref\_\-cnt}}
\label{classRouteEntry_a42add6f3ecdc8058f6fb2f34acfda6d3}

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

\item 
\hypertarget{classRouteEntry_ae49ce4c5c986ae16c974d1cdaa356d84}{
\hyperlink{classPolicyTags}{PolicyTags} {\bfseries \_\-policytags}}
\label{classRouteEntry_ae49ce4c5c986ae16c974d1cdaa356d84}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRouteEntry_a305bdb913ca32aef26cdef9089176a3f}{
void {\bfseries ref} ()}
\label{classRouteEntry_a305bdb913ca32aef26cdef9089176a3f}

\item 
\hypertarget{classRouteEntry_a433e451c7e4d33fdf6ca8662f9ef51ce}{
uint16\_\-t {\bfseries unref} ()}
\label{classRouteEntry_a433e451c7e4d33fdf6ca8662f9ef51ce}

\item 
\hypertarget{classRouteEntry_aec12f02c6d4d3472738d2c485f0680aa}{
uint16\_\-t {\bfseries ref\_\-cnt} () const }
\label{classRouteEntry_aec12f02c6d4d3472738d2c485f0680aa}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRouteEntry_a765c26148914fd3d1c9c4e8b20a1dbb5}{
\hyperlink{structOlsrTypes_a73921e658109f18cf96bfa1431400de3}{OlsrTypes::VertexType} {\bfseries \_\-destination\_\-type}}
\label{classRouteEntry_a765c26148914fd3d1c9c4e8b20a1dbb5}

\item 
\hypertarget{classRouteEntry_a259f04bccfc07bb76c950e3f3fed58e7}{
bool {\bfseries \_\-direct}}
\label{classRouteEntry_a259f04bccfc07bb76c950e3f3fed58e7}

\item 
\hypertarget{classRouteEntry_a8f5296e8594898ad2dcdad1f83eede2a}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-nexthop}}
\label{classRouteEntry_a8f5296e8594898ad2dcdad1f83eede2a}

\item 
\hypertarget{classRouteEntry_a18b61ae26b16b7e05c98cb136e2479e4}{
\hyperlink{structOlsrTypes_a0be5017ad053311658089d9a795c63ac}{OlsrTypes::FaceID} {\bfseries \_\-faceid}}
\label{classRouteEntry_a18b61ae26b16b7e05c98cb136e2479e4}

\item 
\hypertarget{classRouteEntry_ad47201dc1ea5e61e6b0a945251a42d29}{
uint32\_\-t {\bfseries \_\-cost}}
\label{classRouteEntry_ad47201dc1ea5e61e6b0a945251a42d29}

\item 
\hypertarget{classRouteEntry_a7e4cd8a18a9d158315f38eb4b79320c1}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-originator}}
\label{classRouteEntry_a7e4cd8a18a9d158315f38eb4b79320c1}

\item 
\hypertarget{classRouteEntry_a6c388e0d1d3a4f895a64ecc55fa66502}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-main\_\-address}}
\label{classRouteEntry_a6c388e0d1d3a4f895a64ecc55fa66502}

\item 
\hypertarget{classRouteEntry_a9f57ded560f9a049663b3e92f2971cf4}{
bool {\bfseries \_\-filtered}}
\label{classRouteEntry_a9f57ded560f9a049663b3e92f2971cf4}

\item 
\hypertarget{classRouteEntry_aac4f436ea029a29ab47d80d75218abce}{
\hyperlink{structOspfTypes_a286fe55f20721d44a78924810daf2c59}{OspfTypes::VertexType} {\bfseries \_\-destination\_\-type}}
\label{classRouteEntry_aac4f436ea029a29ab47d80d75218abce}

\item 
\hypertarget{classRouteEntry_a79f058e6086416d61978f8b083e20302}{
bool {\bfseries \_\-discard}}
\label{classRouteEntry_a79f058e6086416d61978f8b083e20302}

\item 
\hypertarget{classRouteEntry_a435e0f4ed04d9064f65ea5f24a53693a}{
uint32\_\-t {\bfseries \_\-address}}
\label{classRouteEntry_a435e0f4ed04d9064f65ea5f24a53693a}

\item 
\hypertarget{classRouteEntry_a272d2ca5b045e6389fadec46b2c06b49}{
\hyperlink{structOspfTypes_a8fc36f0cbcee50cfdb0d10b192aaa53a}{OspfTypes::RouterID} {\bfseries \_\-id}}
\label{classRouteEntry_a272d2ca5b045e6389fadec46b2c06b49}

\item 
\hypertarget{classRouteEntry_afbac9a5017f9f3bcf99d5c29603caca0}{
bool {\bfseries \_\-area\_\-border\_\-router}}
\label{classRouteEntry_afbac9a5017f9f3bcf99d5c29603caca0}

\item 
\hypertarget{classRouteEntry_af4febf29240636d37de2bb7b17dd913b}{
bool {\bfseries \_\-as\_\-boundary\_\-router}}
\label{classRouteEntry_af4febf29240636d37de2bb7b17dd913b}

\item 
\hypertarget{classRouteEntry_abbedf39aefeea1da1321dd7857e5bc88}{
\hyperlink{structOspfTypes_a8276e5e81192074d7c95e445995d18c6}{OspfTypes::AreaID} {\bfseries \_\-area}}
\label{classRouteEntry_abbedf39aefeea1da1321dd7857e5bc88}

\item 
\hypertarget{classRouteEntry_ae9267915dce93f9d7fe4f50ab73e0293}{
\hyperlink{classRouteEntry_a10865d2dca3d9067e517dedf133c459d}{PathType} {\bfseries \_\-path\_\-type}}
\label{classRouteEntry_ae9267915dce93f9d7fe4f50ab73e0293}

\item 
\hypertarget{classRouteEntry_a0bd5297d83f2284f4db79ea6acca52ff}{
uint32\_\-t {\bfseries \_\-type\_\-2\_\-cost}}
\label{classRouteEntry_a0bd5297d83f2284f4db79ea6acca52ff}

\item 
\hypertarget{classRouteEntry_abb0093468eea949e1242926c5447018b}{
A {\bfseries \_\-nexthop}}
\label{classRouteEntry_abb0093468eea949e1242926c5447018b}

\item 
\hypertarget{classRouteEntry_a1bb65bb4c58614c045380338714375ef}{
uint32\_\-t {\bfseries \_\-nexthop\_\-id}}
\label{classRouteEntry_a1bb65bb4c58614c045380338714375ef}

\item 
\hypertarget{classRouteEntry_a25c0c0632906b2d4281d565439aba8f5}{
uint32\_\-t {\bfseries \_\-advertising\_\-router}}
\label{classRouteEntry_a25c0c0632906b2d4281d565439aba8f5}

\item 
\hypertarget{classRouteEntry_a4f41e0b7e24b1b1ec0ba09b56792ebe8}{
\hyperlink{classref__ptr}{Lsa::LsaRef} {\bfseries \_\-lsar}}
\label{classRouteEntry_a4f41e0b7e24b1b1ec0ba09b56792ebe8}

\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRouteEntry_a8ecfb9941b7e62e4a5dd78b9b0896d62}{
class \hyperlink{classRouteEntry_a8ecfb9941b7e62e4a5dd78b9b0896d62}{RouteEntryRef$<$ A $>$}}
\label{classRouteEntry_a8ecfb9941b7e62e4a5dd78b9b0896d62}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename A$>$ class RouteEntry$<$ A $>$}

An OLSR internal route entry. RIP \hyperlink{classRoute}{Route} Entry Class.

Base class for \hyperlink{classRIB}{RIB} routing table entries.

\hyperlink{classExternal}{External} view of a routing entry.

OLSRv1, unlike OSPF, does not implement areas, therefore there is no need in \hyperlink{protocolthe-p}{the} current design to have logical separation between \hyperlink{protocolthe-p}{the} routes which it processes internally and those which it exports to \hyperlink{protocolthe-p}{the} \hyperlink{classRIB}{RIB}.

It also has no concept of network LSAs \mbox{[}HNA routes are not used in calculating reachability in \hyperlink{protocolthe-p}{the} OLSR topology\mbox{]} therefore \hyperlink{protocolthe-p}{the} address property is not present here, nor is \hyperlink{protocolthe-p}{the} 'discard' flag, nor is \hyperlink{protocolthe-p}{the} path type.

TODO: Import this definition into UML. TODO: Templatize to hold \hyperlink{classIPv6}{IPv6}.

This is \hyperlink{protocolthe-p}{the} base class from which \hyperlink{classRIB}{RIB} routing table entries are derived. It's not useful by itself.

This class is used for storing RIPv2 and RIPng route entries. It is a template class taking an address family type as a template argument. Only \hyperlink{classIPv4}{IPv4} and \hyperlink{classIPv6}{IPv6} types may be supplied. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classRouteEntry_a3f4aae1f24a368b94df2e3881d1fd7cc}{
\index{RouteEntry@{RouteEntry}!RouteEntry@{RouteEntry}}
\index{RouteEntry@{RouteEntry}!RouteEntry@{RouteEntry}}
\subsubsection[{RouteEntry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ {\bf RouteEntry}$<$ A $>$::{\bf RouteEntry} (
\begin{DoxyParamCaption}
\item[{{\bf RibVif} $\ast$}]{vif, }
\item[{{\bf NextHop} $\ast$}]{nexthop, }
\item[{const {\bf Protocol} \&}]{protocol, }
\item[{uint32\_\-t}]{metric}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_a3f4aae1f24a368b94df2e3881d1fd7cc}


Constructor for a route entry. 


\begin{DoxyParams}{Parameters}
{\em vif} & \hyperlink{protocolthe-p}{the} Virtual Interface on which packets matching this routing table entry should be forwarded. \\
\hline
{\em nexthop} & \hyperlink{protocolthe-p}{the} \hyperlink{classNextHop}{NextHop} router to which packets matching this entry should be forwarded. \\
\hline
{\em protocol} & \hyperlink{protocolthe-p}{the} routing protocol that originated this route. \\
\hline
{\em metric} & \hyperlink{protocolthe-p}{the} routing protocol metric for this route. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_a86a875df1a6abf0251f24c3dd39f13ed}{
\index{RouteEntry@{RouteEntry}!RouteEntry@{RouteEntry}}
\index{RouteEntry@{RouteEntry}!RouteEntry@{RouteEntry}}
\subsubsection[{RouteEntry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ {\bf RouteEntry}$<$ A $>$::{\bf RouteEntry} (
\begin{DoxyParamCaption}
\item[{const {\bf Net} \&}]{n, }
\item[{const Addr \&}]{nh, }
\item[{const string \&}]{ifname, }
\item[{const string \&}]{vifname, }
\item[{uint16\_\-t}]{cost, }
\item[{{\bf Origin} $\ast$\&}]{o, }
\item[{uint16\_\-t}]{tag}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_a86a875df1a6abf0251f24c3dd39f13ed}


Constructor. 

The constructor set \hyperlink{protocolthe-p}{the} internal state according to \hyperlink{protocolthe-p}{the} parameters and if \hyperlink{protocolthe-p}{the} Origin is non-\/null makes \hyperlink{protocolthe-p}{the} appropriate call to tell \hyperlink{protocolthe-p}{the} Origin of it's existence. \hypertarget{classRouteEntry_a63ebdf2f623d792d854dbbb3434c9b35}{
\index{RouteEntry@{RouteEntry}!$\sim$RouteEntry@{$\sim$RouteEntry}}
\index{$\sim$RouteEntry@{$\sim$RouteEntry}!RouteEntry@{RouteEntry}}
\subsubsection[{$\sim$RouteEntry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ {\bf RouteEntry}$<$ A $>$::$\sim${\bf RouteEntry} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_a63ebdf2f623d792d854dbbb3434c9b35}


Destructor. 

Cleans up state associated with \hyperlink{classRouteEntry}{RouteEntry}. If \hyperlink{protocolthe-p}{the} Origin associated with \hyperlink{protocolthe-p}{the} \hyperlink{classRouteEntry}{RouteEntry} is not-\/null, \hyperlink{protocolthe-p}{the} Origin is informed of \hyperlink{protocolthe-p}{the} destruction. 

\subsection{Member Function Documentation}
\hypertarget{classRouteEntry_a9683d7ccff4fca19d64d38c1d9510bf7}{
\index{RouteEntry@{RouteEntry}!admin\_\-distance@{admin\_\-distance}}
\index{admin\_\-distance@{admin\_\-distance}!RouteEntry@{RouteEntry}}
\subsubsection[{admin\_\-distance}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ uint16\_\-t {\bf RouteEntry}$<$ A $>$::admin\_\-distance (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a9683d7ccff4fca19d64d38c1d9510bf7}


Get \hyperlink{protocolthe-p}{the} Administrative Distance. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} Administrative Distance associated with this route. Admin Distance is a parameter typically assigned on a per-\/routing-\/protocol basis. When two routes for \hyperlink{protocolthe-p}{the} same subnet come from different routing protocols, \hyperlink{protocolthe-p}{the} one with \hyperlink{protocolthe-p}{the} lower admin distance is prefered. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a22c3abf6e9036081d4451fc9deeebaf9}{
\index{RouteEntry@{RouteEntry}!cost@{cost}}
\index{cost@{cost}!RouteEntry@{RouteEntry}}
\subsubsection[{cost}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ uint16\_\-t {\bf RouteEntry}$<$ A $>$::cost (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a22c3abf6e9036081d4451fc9deeebaf9}


Get \hyperlink{protocolthe-p}{the} cost metric. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} cost associated with \hyperlink{protocolthe-p}{the} route entry. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a14da2459bac55281b534cdf57ac8de1d}{
\index{RouteEntry@{RouteEntry}!cost@{cost}}
\index{cost@{cost}!RouteEntry@{RouteEntry}}
\subsubsection[{cost}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ uint32\_\-t {\bf RouteEntry}$<$ A $>$::cost (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a14da2459bac55281b534cdf57ac8de1d}
\begin{DoxyReturn}{Returns}
OLSR protocol cost of route. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a6167bbe6b006002079e735e6aee78353}{
\index{RouteEntry@{RouteEntry}!direct@{direct}}
\index{direct@{direct}!RouteEntry@{RouteEntry}}
\subsubsection[{direct}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ bool {\bf RouteEntry}$<$ A $>$::direct (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a6167bbe6b006002079e735e6aee78353}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} destination is directly connected.
\end{DoxyReturn}
Strictly speaking, we should still add it to \hyperlink{protocolthe-p}{the} \hyperlink{classRIB}{RIB}; \hyperlink{protocolthe-p}{the} local node MAY use ARP for L2 resolution, but we may still wish to redistribute routes for these destinations, in order to see OLSR protocol specific information for those destinations. \hypertarget{classRouteEntry_a7fa19981bfc3e1a7a109b52d5ca1340e}{
\index{RouteEntry@{RouteEntry}!faceid@{faceid}}
\index{faceid@{faceid}!RouteEntry@{RouteEntry}}
\subsubsection[{faceid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ {\bf OlsrTypes::FaceID} {\bf RouteEntry}$<$ A $>$::faceid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a7fa19981bfc3e1a7a109b52d5ca1340e}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} ID of \hyperlink{protocolthe-p}{the} interface used to reach \hyperlink{protocolthe-p}{the} destination. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a95171a1527594f2829ccef34393a430c}{
\index{RouteEntry@{RouteEntry}!filtered@{filtered}}
\index{filtered@{filtered}!RouteEntry@{RouteEntry}}
\subsubsection[{filtered}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ bool {\bf RouteEntry}$<$ A $>$::filtered (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a95171a1527594f2829ccef34393a430c}
\begin{DoxyReturn}{Returns}
true if route was rejected by policy filter. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a95171a1527594f2829ccef34393a430c}{
\index{RouteEntry@{RouteEntry}!filtered@{filtered}}
\index{filtered@{filtered}!RouteEntry@{RouteEntry}}
\subsubsection[{filtered}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ bool {\bf RouteEntry}$<$ A $>$::filtered (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a95171a1527594f2829ccef34393a430c}
\begin{DoxyReturn}{Returns}
true if this route has been filtered by policy filters. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a41e56a1b8741617e896639d727f6eb38}{
\index{RouteEntry@{RouteEntry}!ifname@{ifname}}
\index{ifname@{ifname}!RouteEntry@{RouteEntry}}
\subsubsection[{ifname}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ const string\& {\bf RouteEntry}$<$ A $>$::ifname (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a41e56a1b8741617e896639d727f6eb38}


Get \hyperlink{protocolthe-p}{the} outgoing interface name. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} outgoing interface name. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_ada0c626b06f1a190c1a73f78f0054b4c}{
\index{RouteEntry@{RouteEntry}!main\_\-address@{main\_\-address}}
\index{main\_\-address@{main\_\-address}!RouteEntry@{RouteEntry}}
\subsubsection[{main\_\-address}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ {\bf IPv4} {\bf RouteEntry}$<$ A $>$::main\_\-address (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_ada0c626b06f1a190c1a73f78f0054b4c}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} OLSR main address of \hyperlink{protocolthe-p}{the} destination. May be unset. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a310bc24fd1c43d67e35571788e9d94d2}{
\index{RouteEntry@{RouteEntry}!metric@{metric}}
\index{metric@{metric}!RouteEntry@{RouteEntry}}
\subsubsection[{metric}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ uint32\_\-t {\bf RouteEntry}$<$ A $>$::metric (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a310bc24fd1c43d67e35571788e9d94d2}


Get \hyperlink{protocolthe-p}{the} routing protocol metric. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} routing protocol metric for this route. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_afed14abd09220bb289f8221727af216f}{
\index{RouteEntry@{RouteEntry}!nexthop@{nexthop}}
\index{nexthop@{nexthop}!RouteEntry@{RouteEntry}}
\subsubsection[{nexthop}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ {\bf IPv4} {\bf RouteEntry}$<$ A $>$::nexthop (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_afed14abd09220bb289f8221727af216f}
\begin{DoxyReturn}{Returns}
protocol address of next hop. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a5be9cc8108f1a3b0a9accce84826d4a5}{
\index{RouteEntry@{RouteEntry}!nexthop@{nexthop}}
\index{nexthop@{nexthop}!RouteEntry@{RouteEntry}}
\subsubsection[{nexthop}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ {\bf NextHop}$\ast$ {\bf RouteEntry}$<$ A $>$::nexthop (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a5be9cc8108f1a3b0a9accce84826d4a5}


Get \hyperlink{protocolthe-p}{the} \hyperlink{classNextHop}{NextHop} router. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classNextHop}{NextHop} router to which packets matching this entry should be forwarded. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a55a50df85e9ff90b69aff70787a5dc11}{
\index{RouteEntry@{RouteEntry}!nexthop@{nexthop}}
\index{nexthop@{nexthop}!RouteEntry@{RouteEntry}}
\subsubsection[{nexthop}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ const A\& {\bf RouteEntry}$<$ A $>$::nexthop (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a55a50df85e9ff90b69aff70787a5dc11}


Get next hop. 

\begin{DoxyReturn}{Returns}
nexthop address associated with \hyperlink{protocolthe-p}{the} route entry. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a21fe49cb50f3a0bf66e408e94b374bd1}{
\index{RouteEntry@{RouteEntry}!origin@{origin}}
\index{origin@{origin}!RouteEntry@{RouteEntry}}
\subsubsection[{origin}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ const {\bf Origin}$\ast$ {\bf RouteEntry}$<$ A $>$::origin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a21fe49cb50f3a0bf66e408e94b374bd1}


Get \hyperlink{protocolthe-p}{the} origin. 

\begin{DoxyReturn}{Returns}
a pointer to \hyperlink{protocolthe-p}{the} origin associated with \hyperlink{protocolthe-p}{the} route entry. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_aa3888545fc3c89d6b478eef7c74ad4ba}{
\index{RouteEntry@{RouteEntry}!origin@{origin}}
\index{origin@{origin}!RouteEntry@{RouteEntry}}
\subsubsection[{origin}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ {\bf Origin}$\ast$ {\bf RouteEntry}$<$ A $>$::origin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_aa3888545fc3c89d6b478eef7c74ad4ba}


Get \hyperlink{protocolthe-p}{the} origin. 

\begin{DoxyReturn}{Returns}
a pointer to \hyperlink{protocolthe-p}{the} origin associated with \hyperlink{protocolthe-p}{the} route entry. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a9998f149d1ec711c5a718a9ea1ac7901}{
\index{RouteEntry@{RouteEntry}!originator@{originator}}
\index{originator@{originator}!RouteEntry@{RouteEntry}}
\subsubsection[{originator}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ {\bf IPv4} {\bf RouteEntry}$<$ A $>$::originator (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a9998f149d1ec711c5a718a9ea1ac7901}
\begin{DoxyReturn}{Returns}
main address of node which originated this route. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_ad49bda8e1c8a676900fb97a796eaf200}{
\index{RouteEntry@{RouteEntry}!policytags@{policytags}}
\index{policytags@{policytags}!RouteEntry@{RouteEntry}}
\subsubsection[{policytags}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ const {\bf PolicyTags}\& {\bf RouteEntry}$<$ A $>$::policytags (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_ad49bda8e1c8a676900fb97a796eaf200}
\begin{DoxyReturn}{Returns}
policy-\/tags associated with route. 
\end{DoxyReturn}


Reimplemented in \hyperlink{classIPRouteEntry_ad5192fcffc1cc1d3a1b5c9a1b083c365}{IPRouteEntry$<$ A $>$}.

\hypertarget{classRouteEntry_a70008aa1b6804367c2cc4e4ed787a425}{
\index{RouteEntry@{RouteEntry}!protocol@{protocol}}
\index{protocol@{protocol}!RouteEntry@{RouteEntry}}
\subsubsection[{protocol}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ const {\bf Protocol}\& {\bf RouteEntry}$<$ A $>$::protocol (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a70008aa1b6804367c2cc4e4ed787a425}


Get \hyperlink{protocolthe-p}{the} routing protocol. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} routing protocol that originated this route. 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{classProtocol}{Protocol}. 
\end{DoxySeeAlso}
\hypertarget{classRouteEntry_aa27a4358d70ae3bf1733e1b80afac59a}{
\index{RouteEntry@{RouteEntry}!set\_\-admin\_\-distance@{set\_\-admin\_\-distance}}
\index{set\_\-admin\_\-distance@{set\_\-admin\_\-distance}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-admin\_\-distance}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-admin\_\-distance (
\begin{DoxyParamCaption}
\item[{uint16\_\-t}]{ad}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_aa27a4358d70ae3bf1733e1b80afac59a}


Set \hyperlink{protocolthe-p}{the} Administrative Distance. 


\begin{DoxyParams}{Parameters}
{\em ad} & \hyperlink{protocolthe-p}{the} administrative distance to apply to this route. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_af82dfddc74d88ce71627b3253aa5bda1}{
\index{RouteEntry@{RouteEntry}!set\_\-cost@{set\_\-cost}}
\index{set\_\-cost@{set\_\-cost}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-cost}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ bool {\bf RouteEntry}$<$ A $>$::set\_\-cost (
\begin{DoxyParamCaption}
\item[{uint16\_\-t}]{cost}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_af82dfddc74d88ce71627b3253aa5bda1}


Set \hyperlink{protocolthe-p}{the} cost metric. 


\begin{DoxyParams}{Parameters}
{\em cost} & \hyperlink{protocolthe-p}{the} new cost to be associated with \hyperlink{protocolthe-p}{the} \hyperlink{classRoute}{Route} Entry.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if stored cost changed, false otherwise. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a7d62ab1e87fe1e63752eb8949fe63d65}{
\index{RouteEntry@{RouteEntry}!set\_\-cost@{set\_\-cost}}
\index{set\_\-cost@{set\_\-cost}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-cost}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-cost (
\begin{DoxyParamCaption}
\item[{const uint32\_\-t}]{cost}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a7d62ab1e87fe1e63752eb8949fe63d65}


Set OLSR protocol cost of route. 


\begin{DoxyParams}{Parameters}
{\em cost} & OLSR protocol cost of route. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_a5d0a54f1e26c7e8135408a257ad64a82}{
\index{RouteEntry@{RouteEntry}!set\_\-destination\_\-type@{set\_\-destination\_\-type}}
\index{set\_\-destination\_\-type@{set\_\-destination\_\-type}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-destination\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-destination\_\-type (
\begin{DoxyParamCaption}
\item[{const {\bf OlsrTypes::VertexType}}]{vt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a5d0a54f1e26c7e8135408a257ad64a82}


Set \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} destination in this route entry. 

The VertexType is re-\/used for this.


\begin{DoxyParams}{Parameters}
{\em vt} & destination type. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_ab282ab7fc357047f8f945e16cafd8b72}{
\index{RouteEntry@{RouteEntry}!set\_\-direct@{set\_\-direct}}
\index{set\_\-direct@{set\_\-direct}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-direct}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-direct (
\begin{DoxyParamCaption}
\item[{bool}]{is\_\-direct}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_ab282ab7fc357047f8f945e16cafd8b72}


Set if \hyperlink{protocolthe-p}{the} destination is directly connected. 


\begin{DoxyParams}{Parameters}
{\em is\_\-direct} & true if destination is directly connected. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_a0fc62ed6a1b6431ead004b9b64d95646}{
\index{RouteEntry@{RouteEntry}!set\_\-faceid@{set\_\-faceid}}
\index{set\_\-faceid@{set\_\-faceid}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-faceid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-faceid (
\begin{DoxyParamCaption}
\item[{const {\bf OlsrTypes::FaceID}}]{faceid}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a0fc62ed6a1b6431ead004b9b64d95646}


Set \hyperlink{protocolthe-p}{the} ID of \hyperlink{protocolthe-p}{the} interface used to reach \hyperlink{protocolthe-p}{the} destination. 


\begin{DoxyParams}{Parameters}
{\em faceid} & \hyperlink{protocolthe-p}{the} ID of \hyperlink{protocolthe-p}{the} outward interface. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_a42fa8633c40f301b3f743defbf71ef28}{
\index{RouteEntry@{RouteEntry}!set\_\-filtered@{set\_\-filtered}}
\index{set\_\-filtered@{set\_\-filtered}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-filtered}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-filtered (
\begin{DoxyParamCaption}
\item[{const bool}]{was\_\-filtered}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a42fa8633c40f301b3f743defbf71ef28}


Set if this route has been filtered by policy filters. 


\begin{DoxyParams}{Parameters}
{\em was\_\-filtered} & true if \hyperlink{protocolthe-p}{the} route has been filtered. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_af16c3fb88d166384934589567fbfbd5f}{
\index{RouteEntry@{RouteEntry}!set\_\-filtered@{set\_\-filtered}}
\index{set\_\-filtered@{set\_\-filtered}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-filtered}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-filtered (
\begin{DoxyParamCaption}
\item[{bool}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_af16c3fb88d166384934589567fbfbd5f}


Set if route is accepted or rejected. 


\begin{DoxyParams}{Parameters}
{\em v} & true if route is filtered \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_ae1af7ac97852912b7a861f4324b0e367}{
\index{RouteEntry@{RouteEntry}!set\_\-ifname@{set\_\-ifname}}
\index{set\_\-ifname@{set\_\-ifname}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-ifname}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ bool {\bf RouteEntry}$<$ A $>$::set\_\-ifname (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_ae1af7ac97852912b7a861f4324b0e367}


Set \hyperlink{protocolthe-p}{the} outgoing interface name. 


\begin{DoxyParams}{Parameters}
{\em ifname} & \hyperlink{protocolthe-p}{the} outgoing interface name. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} stored interface name changed, false otherwise. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a579679ec2622df08e685c8bef81c3cbc}{
\index{RouteEntry@{RouteEntry}!set\_\-main\_\-address@{set\_\-main\_\-address}}
\index{set\_\-main\_\-address@{set\_\-main\_\-address}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-main\_\-address}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-main\_\-address (
\begin{DoxyParamCaption}
\item[{const {\bf IPv4} \&}]{main\_\-addr}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a579679ec2622df08e685c8bef81c3cbc}


Set \hyperlink{protocolthe-p}{the} main address of \hyperlink{protocolthe-p}{the} destination. 

Applicable only if if this is a route which is tagged with such information (N1, N2, TC, MID). May be \hyperlink{protocolthe-p}{the} same as \hyperlink{protocolthe-p}{the} destination.


\begin{DoxyParams}{Parameters}
{\em main\_\-addr} & \hyperlink{protocolthe-p}{the} OLSR main address of \hyperlink{protocolthe-p}{the} destination. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_a11d4c0d3e6d90f7bfd096682055c74b4}{
\index{RouteEntry@{RouteEntry}!set\_\-metric@{set\_\-metric}}
\index{set\_\-metric@{set\_\-metric}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-metric}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-metric (
\begin{DoxyParamCaption}
\item[{uint32\_\-t}]{metric}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a11d4c0d3e6d90f7bfd096682055c74b4}


Set \hyperlink{protocolthe-p}{the} routing protocol metric on this route. 


\begin{DoxyParams}{Parameters}
{\em metric} & \hyperlink{protocolthe-p}{the} routing protocol metric to be set on this route. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_a969d5eccd89b51d0c9dd87e363382c26}{
\index{RouteEntry@{RouteEntry}!set\_\-nexthop@{set\_\-nexthop}}
\index{set\_\-nexthop@{set\_\-nexthop}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-nexthop}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ bool {\bf RouteEntry}$<$ A $>$::set\_\-nexthop (
\begin{DoxyParamCaption}
\item[{const A \&}]{nh}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_a969d5eccd89b51d0c9dd87e363382c26}


Set next hop. 


\begin{DoxyParams}{Parameters}
{\em nh} & \hyperlink{protocolthe-p}{the} new nexthop to be associated with \hyperlink{classRoute}{Route} Entry.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} stored nexthop changed, false otherwise. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a6aab1127e721d160137f78f8ceb544f2}{
\index{RouteEntry@{RouteEntry}!set\_\-nexthop@{set\_\-nexthop}}
\index{set\_\-nexthop@{set\_\-nexthop}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-nexthop}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-nexthop (
\begin{DoxyParamCaption}
\item[{{\bf NextHop} $\ast$}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a6aab1127e721d160137f78f8ceb544f2}


Set \hyperlink{protocolthe-p}{the} \hyperlink{classNextHop}{NextHop} router. 


\begin{DoxyParams}{Parameters}
{\em v} & \hyperlink{protocolthe-p}{the} \hyperlink{classNextHop}{NextHop} router to be set on this route. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_adf6e94d6643b4012c6860c8b2e39859b}{
\index{RouteEntry@{RouteEntry}!set\_\-nexthop@{set\_\-nexthop}}
\index{set\_\-nexthop@{set\_\-nexthop}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-nexthop}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-nexthop (
\begin{DoxyParamCaption}
\item[{const {\bf IPv4} \&}]{nexthop}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_adf6e94d6643b4012c6860c8b2e39859b}


Set protocol address of next hop. 


\begin{DoxyParams}{Parameters}
{\em nexthop} & address of next hop. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_ab7066e7283e3adb06ee110fdd44c7c78}{
\index{RouteEntry@{RouteEntry}!set\_\-origin@{set\_\-origin}}
\index{set\_\-origin@{set\_\-origin}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-origin}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ bool {\bf RouteEntry}$<$ A $>$::set\_\-origin (
\begin{DoxyParamCaption}
\item[{{\bf Origin} $\ast$}]{origin}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_ab7066e7283e3adb06ee110fdd44c7c78}


Set \hyperlink{protocolthe-p}{the} origin. 

If \hyperlink{protocolthe-p}{the} origin is different from \hyperlink{protocolthe-p}{the} stored origin, \hyperlink{protocolthe-p}{the} \hyperlink{classRouteEntry}{RouteEntry} dissociates itself from \hyperlink{protocolthe-p}{the} current origin and informs \hyperlink{protocolthe-p}{the} new origin of it's existence.


\begin{DoxyParams}{Parameters}
{\em origin} & \hyperlink{protocolthe-p}{the} new origin to be associated with \hyperlink{protocolthe-p}{the} route entry.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} stored origin changed, false otherwise. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a9a9a3c8acabfd516708f5f2db8900b0b}{
\index{RouteEntry@{RouteEntry}!set\_\-originator@{set\_\-originator}}
\index{set\_\-originator@{set\_\-originator}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-originator}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ void {\bf RouteEntry}$<$ A $>$::set\_\-originator (
\begin{DoxyParamCaption}
\item[{const {\bf IPv4} \&}]{originator}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a9a9a3c8acabfd516708f5f2db8900b0b}


Set \hyperlink{protocolthe-p}{the} originator of this route. 


\begin{DoxyParams}{Parameters}
{\em originator} & main address of node originating this route. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_a2518fd7cebad2a09f68ea4ccd7fac979}{
\index{RouteEntry@{RouteEntry}!set\_\-policytags@{set\_\-policytags}}
\index{set\_\-policytags@{set\_\-policytags}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-policytags}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ bool {\bf RouteEntry}$<$ A $>$::set\_\-policytags (
\begin{DoxyParamCaption}
\item[{const {\bf PolicyTags} \&}]{tags}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_a2518fd7cebad2a09f68ea4ccd7fac979}


Replace policy-\/tags of route. 

\begin{DoxyReturn}{Returns}
true if tags were modified. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em tags} & new policy-\/tags. \\
\hline
\end{DoxyParams}
\hypertarget{classRouteEntry_ad88e323cf5f4216709ae36bf049426cf}{
\index{RouteEntry@{RouteEntry}!set\_\-tag@{set\_\-tag}}
\index{set\_\-tag@{set\_\-tag}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-tag}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ bool {\bf RouteEntry}$<$ A $>$::set\_\-tag (
\begin{DoxyParamCaption}
\item[{uint16\_\-t}]{tag}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_ad88e323cf5f4216709ae36bf049426cf}


Set \hyperlink{protocolthe-p}{the} tag value. 


\begin{DoxyParams}{Parameters}
{\em tag} & \hyperlink{protocolthe-p}{the} tag value to be associated with \hyperlink{protocolthe-p}{the} route entry.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} stored tag changed, false otherwise. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a86029a36ad0b99f0cc445414bdcbac77}{
\index{RouteEntry@{RouteEntry}!set\_\-vifname@{set\_\-vifname}}
\index{set\_\-vifname@{set\_\-vifname}!RouteEntry@{RouteEntry}}
\subsubsection[{set\_\-vifname}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ bool {\bf RouteEntry}$<$ A $>$::set\_\-vifname (
\begin{DoxyParamCaption}
\item[{const string \&}]{vifname}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_a86029a36ad0b99f0cc445414bdcbac77}


Set \hyperlink{protocolthe-p}{the} outgoing vif name. 


\begin{DoxyParams}{Parameters}
{\em vifname} & \hyperlink{protocolthe-p}{the} outgoing vif name. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} stored vif name changed, false otherwise. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_ab147ec72867cdde9281dcfa93ee3a530}{
\index{RouteEntry@{RouteEntry}!str@{str}}
\index{str@{str}!RouteEntry@{RouteEntry}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ string {\bf RouteEntry}$<$ A $>$::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classRouteEntry_ab147ec72867cdde9281dcfa93ee3a530}
\begin{DoxyReturn}{Returns}
a string representation of \hyperlink{protocolthe-p}{the} route entry. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a0fcb2a7127a892be388c7f20c542c4d0}{
\index{RouteEntry@{RouteEntry}!tag@{tag}}
\index{tag@{tag}!RouteEntry@{RouteEntry}}
\subsubsection[{tag}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ uint16\_\-t {\bf RouteEntry}$<$ A $>$::tag (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a0fcb2a7127a892be388c7f20c542c4d0}


Get \hyperlink{protocolthe-p}{the} tag. 

\begin{DoxyReturn}{Returns}
tag value associated with \hyperlink{protocolthe-p}{the} route entry. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a24556f5617fcf3e3528d8f1fc03e710a}{
\index{RouteEntry@{RouteEntry}!vif@{vif}}
\index{vif@{vif}!RouteEntry@{RouteEntry}}
\subsubsection[{vif}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ {\bf RibVif}$\ast$ {\bf RouteEntry}$<$ A $>$::vif (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a24556f5617fcf3e3528d8f1fc03e710a}


Get \hyperlink{protocolthe-p}{the} VIF. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} Virtual Interface on which packets matching this routing table entry should be forwarded. 
\end{DoxyReturn}
\hypertarget{classRouteEntry_a81e2d96d1cc28cb5c141af9b65cf73af}{
\index{RouteEntry@{RouteEntry}!vifname@{vifname}}
\index{vifname@{vifname}!RouteEntry@{RouteEntry}}
\subsubsection[{vifname}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ const string\& {\bf RouteEntry}$<$ A $>$::vifname (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRouteEntry_a81e2d96d1cc28cb5c141af9b65cf73af}


Get \hyperlink{protocolthe-p}{the} outgoing vif name. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} outgoing vif name. 
\end{DoxyReturn}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/route\_\-manager.hh\item 
/home/greearb/git/xorp.ct.github/xorp/ospf/routing\_\-table.hh\item 
/home/greearb/git/xorp.ct.github/xorp/rip/route\_\-entry.hh\item 
/home/greearb/git/xorp.ct.github/xorp/rib/route.hh\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/route\_\-manager.cc\item 
/home/greearb/git/xorp.ct.github/xorp/rib/route.cc\item 
/home/greearb/git/xorp.ct.github/xorp/rip/route\_\-entry.cc\end{DoxyCompactItemize}
