[ndnSIM] Change an Interest Packet in App
alexander.afanasyev at ucla.edu
Wed Nov 19 17:28:37 PST 2014
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:
> 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:
> 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?
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
More information about the ndnSIM