ns-allinone-2.35/olsr/OLSR.cc
///
/// \brief Adds a 2-hop neighbor tuple to the 2-hop Neighbor Set.
///
/// \param tuple the 2-hop neighbor tuple to be added.
///
\brief Adds a 2-hop neighbor tuple to the 2-hop Neighbor Set.
\param tuple the 2-hop neighbor tuple to be added.
\ brief Adds a 2 - hop neighbor tuple to the 2 - hop Neighbor Set . \ param tuple the 2 - hop neighbor tuple to be added .
void
OLSR::add_nb2hop_tuple(OLSR_nb2hop_tuple* tuple) {
	debug("%f: Node %d adds 2-hop neighbor tuple: nb_addr = %d nb2hop_addr = %d\n",
		CURRENT_TIME,
		OLSR::node_id(ra_addr()),
		OLSR::node_id(tuple->nb_main_addr()),
		OLSR::node_id(tuple->nb2hop_addr()));
	state_.insert_nb2hop_tuple(tuple);
}
void OLSR :: add_nb2hop_tuple ( OLSR_nb2hop_tuple * tuple ) { debug ( " \n " , CURRENT_TIME , OLSR :: node_id ( ra_addr ( ) ) , OLSR :: node_id ( tuple -> nb_main_addr ( ) ) , OLSR :: node_id ( tuple -> nb2hop_addr ( ) ) ) ; state_ . insert_nb2hop_tuple ( tuple ) ; }
\brief Adds a 2-hop neighbor tuple to the 2-hop Neighbor Set.
\ brief Adds a 2 - hop neighbor tuple to the 2 - hop Neighbor Set .