[Nfd-dev] Interest equality for for Nack

Thompson, Jeff jefft0 at remap.UCLA.edu
Mon Apr 25 12:13:15 PDT 2016


Hello all,

To support the network Nack in ndn-cxx, expressInterest takes a NackCallback and stores this along with the Interest in the library PIT. When ndn-cxx receives a Nack, it has to find the PIT entry with the “same” interest as the interest in the Nack packet. The test for “same” uses exact equality of the Interest wire encoding (including the nonce and all the selectors).
https://github.com/named-data/ndn-cxx/blob/4b4699897cf281c08b85343a1b0d02961eb727f0/src/interest.hpp#L429

Is it guaranteed that the Interest which goes through the whole network and is returned Nack will have the exact same encoding bytes as the Interest that was originally expressed? Is this stated somewhere? Could the encoding ever be different?

Thanks,
- Jeff T
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160425/2105a6f3/attachment.html>


More information about the Nfd-dev mailing list