ns-allinone-2.35/olsr/OLSR.cc
void
OLSR::send_mid() {
	OLSR_msg msg;
	msg.msg_type()		= OLSR_MID_MSG;
	msg.vtime()		= OLSR::seconds_to_emf(OLSR_MID_HOLD_TIME);
	msg.orig_addr()		= ra_addr();
	msg.ttl()		= 255;
	msg.hop_count()		= 0;
	msg.msg_seq_num()	= msg_seq();
	
	msg.mid().count		= 0;
	//foreach iface in this_node do
	//	msg.mid().iface_addr(i) = iface
	//	msg.mid().count++
	//done
	
	msg.msg_size()		= msg.size();
	
	enque_msg(msg, JITTER);
}
///
/// \brief Creates a new %OLSR MID message which is buffered to be sent later on.
/// \warning This message is never invoked because there is no support for multiple interfaces.
///
\brief Creates a new %OLSR MID message which is buffered to be sent later on.
\warning This message is never invoked because there is no support for multiple interfaces.
\ brief Creates a new %OLSR MID message which is buffered to be sent later on . \ warning This message is never invoked because there is no support for multiple interfaces .
void
OLSR::send_mid() {
	OLSR_msg msg;
	msg.msg_type()		= OLSR_MID_MSG;
	msg.vtime()		= OLSR::seconds_to_emf(OLSR_MID_HOLD_TIME);
	msg.orig_addr()		= ra_addr();
	msg.ttl()		= 255;
	msg.hop_count()		= 0;
	msg.msg_seq_num()	= msg_seq();
	msg.mid().count		= 0;
	msg.msg_size()		= msg.size();
	enque_msg(msg, JITTER);
}
void OLSR :: send_mid ( ) { OLSR_msg msg ; msg . msg_type ( ) = OLSR_MID_MSG ; msg . vtime ( ) = OLSR :: seconds_to_emf ( OLSR_MID_HOLD_TIME ) ; msg . orig_addr ( ) = ra_addr ( ) ; msg . ttl ( ) = 255 ; msg . hop_count ( ) = 0 ; msg . msg_seq_num ( ) = msg_seq ( ) ; msg . mid ( ) . count = 0 ; msg . msg_size ( ) = msg . size ( ) ; enque_msg ( msg , JITTER ) ; }
\brief Creates a new %OLSR MID message which is buffered to be sent later on.
\ brief Creates a new %OLSR MID message which is buffered to be sent later on .
//foreach iface in this_node do //	msg.mid().iface_addr(i) = iface //	msg.mid().count++ //done