ns-allinone-2.35/olsr/OLSR_rtable.cc
OLSR_rt_entry*
OLSR_rtable::lookup(nsaddr_t dest) {
	// Get the iterator at "dest" position
	rtable_t::iterator it = rt_.find(dest);
	// If there is no route to "dest", return NULL
	if (it == rt_.end())
		return NULL;
	
	// Returns the rt entry (second element of the pair)
	return (*it).second;
}
///
/// \brief Looks up an entry for the specified destination address.
/// \param dest	destination address.
/// \return	the routing table entry for that destination address, or NULL
///		if such an entry does not exist
///
\brief Looks up an entry for the specified destination address.
\param dest    destination address.
\return        the routing table entry for that destination address, or NULL
if such an entry does not exist
\ brief Looks up an entry for the specified destination address . \ param dest destination address . \ return the routing table entry for that destination address or NULL if such an entry does not exist
OLSR_rt_entry*
OLSR_rtable::lookup(nsaddr_t dest) {
	rtable_t::iterator it = rt_.find(dest);
	if (it == rt_.end())
		return NULL;
	return (*it).second;
}
OLSR_rt_entry * OLSR_rtable :: lookup ( nsaddr_t dest ) { rtable_t :: iterator it = rt_ . find ( dest ) ; if ( it == rt_ . end ( ) ) return NULL ; return ( * it ) . second ; }
\brief Looks up an entry for the specified destination address.
\ brief Looks up an entry for the specified destination address .
// Get the iterator at "dest" position // If there is no route to "dest", return NULL // Returns the rt entry (second element of the pair)