[ndnSIM] ndnSIM: Modifying Interest Packet

Junxiao Shi shijunxiao at email.arizona.EDU
Mon Feb 20 11:22:59 PST 2017

Hi Sabet

You are actually able to change the Link object from strategy in NFD 0.5.1,
but this is an undocumented feature and can disappear in NFD 0.6.0

Yours, Junxiao

On Feb 20, 2017 12:19, "Muhammad Hosain Abdollahi Sabet" <mhasabet at gmail.com>

> 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/4517254b/attachment.html>

More information about the ndnSIM mailing list