cn-uofbasel / ccn-lite

CCN-lite, a lightweight implementation of the CCNx protocol and its variations
ISC License
74 stars 63 forks source link

ndn: fix nonce parsing when forwarding #361

Closed cgundogan closed 5 years ago

cgundogan commented 5 years ago

Contribution description

According to [1], the nonce is a 4 byte octet stream, and not a NonNegInteger. This leads to corrupt Interest packets when forwarding, because a high nonce value is interpreted to have a length of 8 bytes instead of the correct 4 bytes.

[1] https://named-data.net/doc/NDN-packet-spec/current/interest.html#nonce