ns-allinone-2.35/olsr/OLSR.cc
bool
OLSR::seq_num_bigger_than(u_int16_t s1, u_int16_t s2) {
	return (s1 > s2 && s1-s2 <= OLSR_MAX_SEQ_NUM/2)
		|| (s2 > s1 && s2-s1 > OLSR_MAX_SEQ_NUM/2);
}
///
/// \brief Determines which sequence number is bigger (as it is defined in RFC 3626).
///
/// \param s1 a sequence number.
/// \param s2 a sequence number.
/// \return true if s1 > s2, false in other case.
///
\brief Determines which sequence number is bigger (as it is defined in RFC 3626).
\param s1 a sequence number.
\param s2 a sequence number.
\return true if s1 > s2, false in other case.
\ brief Determines which sequence number is bigger ( as it is defined in RFC 3626 ) . \ param s1 a sequence number . \ param s2 a sequence number . \ return true if s1 > s2 false in other case .
bool
OLSR::seq_num_bigger_than(u_int16_t s1, u_int16_t s2) {
	return (s1 > s2 && s1-s2 <= OLSR_MAX_SEQ_NUM/2)
		|| (s2 > s1 && s2-s1 > OLSR_MAX_SEQ_NUM/2);
}
bool OLSR :: seq_num_bigger_than ( u_int16_t s1 , u_int16_t s2 ) { return ( s1 > s2 && s1 - s2 <= OLSR_MAX_SEQ_NUM / 2 ) || ( s2 > s1 && s2 - s1 > OLSR_MAX_SEQ_NUM / 2 ) ; }
\brief Determines which sequence number is bigger (as it is defined in RFC 3626).
\ brief Determines which sequence number is bigger ( as it is defined in RFC 3626 ) .