[ndnSIM] how to modify nonce field in Interest packet
alexander.afanasyev at ucla.edu
Sun Apr 28 13:24:35 PDT 2013
(1) The application is fully responsible to put the nonce into the interests. ndn::Consumer-based applications put nonce from uniform distribution (https://github.com/NDN-Routing/ndnSIM/blob/master/apps/ndn-consumer.cc#L206)
(2) There is GetNonce() method for ndn::Interest class
(3) If you write your own app, you just set nonce using SetNonce method. If you want to reuse existing consumers, then you probably need to change their implementation to some extent.
On Apr 28, 2013, at 7:06 AM, yao hu <huyao0107 at gmail.com> wrote:
> Hi Alex,
> ndnsim documents says nonce field is filled with a value of uint32_t type. Could you please tell
> (1) what value is filled in nonce field in the current Interest packet implementation.
> (2) how to get the nonce value when receiving Interest packet?
> (3) is it possible to fill a self-defined value into nonce field?
> Thanks very much!
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM