[ndnSIM] Change an Interest Packet in App

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Nov 19 17:28:37 PST 2014

Hi Julian,

It depends on what exactly you want to do.  When you do anything within an application, you're dealing with the final copy of the Interest, which will never be forwarded anywhere.  So, even if the Interest wasn't marked const, none of your updates would be effective during forwarding.

You may want to update custom fields inside the forwarding strategy, before the Interest is actually forwarded.


> On Nov 19, 2014, at 9:02 AM, Julian Wulfheide <ju.wulfheide at gmail.com> wrote:
> Hi,
> I have an App in which I want to mark an Interest packet before it is forwarded.
> So I added a new field to the Interest packet as describe here:
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-December/001046.html
> I was hoping I could now just alter the Interest packet with something
> like interest->SetXXX(Y) in my
> MonitorApp::OnInterest (Ptr<const ndn::Interest> interest)
> but I just now realized that it is constant. What would be the
> recommended way of "marking" a packet while it is being forwarded to
> its destination?
> Thanks!
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

More information about the ndnSIM mailing list