rsunicast/rsunicast_history.h
/**
 * Returns 1 iff the last received message of this neighbor has the same seqno.
 * Else 0
 */
Returns 1 iff the last received message of this neighbor has the same seqno.
Else 0
Returns 1 iff the last received message of this neighbor has the same seqno . Else 0
uint8_t rsu_check_history(uint16_t from, uint8_t seqno){
	struct rsu_history_element* tmp = rsu_history_list;
	for(;tmp!=0; tmp = tmp->next){
		if(tmp->id == from && tmp->seqno == seqno) return 1;
	}
	return 0;
}
uint8_t rsu_check_history ( uint16_t from , uint8_t seqno ) { struct rsu_history_element * tmp = rsu_history_list ; for ( ; tmp != 0 ; tmp = tmp -> next ) { if ( tmp -> id == from && tmp -> seqno == seqno ) return 1 ; } return 0 ; }
Returns 1 iff the last received message of this neighbor has the same seqno.
Returns 1 iff the last received message of this neighbor has the same seqno .