[Olsr-dev] packet sequence number
Benoit PAPILLAULT
(spam-protected)
Fri Aug 24 13:51:56 CEST 2007
Andreas Tønnesen a écrit :
>
> Please provide examples. Olsrd maintains one seqno pr. interface
> in olsrd_seqnum in the interface struct(interface.h).
> This value is appended and incremented in every transmission on
> that interface in the net_output function(net_olsr.c).
> IMO this is what the RFC requires.
>
> - Andreas
Hi Andreas,
I reread the RFC and made a small mistake in fact. The RFC defines:
* Packet Sequence Number (3.3.1) : A separe packet sequence number is
maintained on each interface (interface.olsr_seqnum in the interface.h)
* Message Sequence Number (3.3.2) : The sequence number is increased by
1 for each message (message_seqno in olsr.c)
The current code looks correct then :-)
Best regards,
Benoit
More information about the Olsr-dev
mailing list