[ndnSIM] ndnSIM: Modifying Interest Packet

Muhammad Hosain Abdollahi Sabet mhasabet at gmail.com
Mon Feb 20 11:18:49 PST 2017


Dear Junxaio,

The point is that I want to substitute Link object. So I need to have the
interest processed again, because this time it will be out of
producerRegion and should be forwarded based on forwarding hint.

Thanks,
Sabet


On Mon, Feb 20, 2017 at 10:42 PM, Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> Hi Sabet
>
> Starting NFD 0.5.0, Strategy::sendInterest function allows the strategy to
> directly specify the Interest packet to be sent out, so that you can make a
> copy of the Interest and modify it as you need.
>
> auto outInterest = make_shared<Interest>(inInterest);
> outInterest->setInterestLifetime(time::milliseconds(500));
> this->sendInterest(pitEntry, outFace, *outInterest);
>
> Just make sure the copy of Interest is created in make_shared, and it
> still matches the PIT entry which means you can't change
> Name+Selectors+Link.
>
>
>
> I can make a copy of Interest and modify it. How can I get it
> Forwarder::startProcessInterest to make it pass forwarding pipeline
> again? I mean, what about the incoming face? Any suggestion?
>
> I don't know why you want the Interest to enter as an incoming Interest.
> Where does it come from? (and that will be your incoming face)
>
> Yours, Junxiao
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170220/74b0b30d/attachment.html>


More information about the ndnSIM mailing list