This is how the AODVv2 draft specifies that Sequence Numbers should be
compared.
The draft specifies that the sequence numbers should be subtracted in order to correctly compare the numbers, and interpret them as int16_t integers (using internally int32_t to avoid overflows or underflows).
This is how the AODVv2 draft specifies that Sequence Numbers should be compared.
The draft specifies that the sequence numbers should be subtracted in order to correctly compare the numbers, and interpret them as
int16_t
integers (using internallyint32_t
to avoid overflows or underflows).This is an step to catch up with the spec.
Depends on #84