ns-allinone-2.35/olsr/OLSR.cc
void
OLSR::populate_nbset(OLSR_msg& msg) {
	OLSR_hello& hello = msg.hello();
	
	OLSR_nb_tuple* nb_tuple = state_.find_nb_tuple(msg.orig_addr());
	if (nb_tuple != NULL)
		nb_tuple->willingness() = hello.willingness();
}
///
/// \brief	Updates the Neighbor Set according to the information contained in a new received
///		HELLO message (following RFC 3626).
///
/// \param msg the %OLSR message which contains the HELLO message.
///
\brief Updates the Neighbor Set according to the information contained in a new received
HELLO message (following RFC 3626).

\param msg the %OLSR message which contains the HELLO message.
\ brief Updates the Neighbor Set according to the information contained in a new received HELLO message ( following RFC 3626 ) . \ param msg the %OLSR message which contains the HELLO message .
void
OLSR::populate_nbset(OLSR_msg& msg) {
	OLSR_hello& hello = msg.hello();
	OLSR_nb_tuple* nb_tuple = state_.find_nb_tuple(msg.orig_addr());
	if (nb_tuple != NULL)
		nb_tuple->willingness() = hello.willingness();
}
void OLSR :: populate_nbset ( OLSR_msg & msg ) { OLSR_hello & hello = msg . hello ( ) ; OLSR_nb_tuple * nb_tuple = state_ . find_nb_tuple ( msg . orig_addr ( ) ) ; if ( nb_tuple != NULL ) nb_tuple -> willingness ( ) = hello . willingness ( ) ; }
\brief Updates the Neighbor Set according to the information contained in a new received
HELLO message (following RFC 3626).
\ brief Updates the Neighbor Set according to the information contained in a new received HELLO message ( following RFC 3626 ) .