btcven / radio-firmware

The firmware for the radio module
https://locha.io
Apache License 2.0
7 stars 10 forks source link

aodvv2: safely compare Sequence Numbers #85

Closed jeandudey closed 4 years ago

jeandudey commented 4 years ago

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 an step to catch up with the spec.

Depends on #84

jeandudey commented 4 years ago

Updated and fixed an error.