[ndnSIM] Getting the origin of an Interest

Eric Binnendyk eric.binnendyk at student.nmt.edu
Fri May 14 14:03:27 PDT 2021


In the forwarding strategy code, I am trying to find the node that an
incoming Interest originated from. I suspect that this information is
somewhere in the PIT entry (possibly in pitEntry->getInRecords()), however
I cannot figure out how to find it.

Does anyone know how to find the origin node of an Interest? I expect the
code will look something like this:

if (pitEntry->getInRecord()->...->origin == nodes.Get(i)) {
num_interests_per_origin[i] += 1;


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210514/d20fff84/attachment.html>

More information about the ndnSIM mailing list