<div dir="auto">Hi Sabet<div dir="auto"><br></div><div dir="auto">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 <a href="https://redmine.named-data.net/issues/3162">https://redmine.named-data.net/issues/3162</a></div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 20, 2017 12:19, "Muhammad Hosain Abdollahi Sabet" <<a href="mailto:mhasabet@gmail.com">mhasabet@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Dear Junxaio,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">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.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks,<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Sabet<br></div><div class="gmail_extra"><br clear="all">
<br><div class="gmail_quote">On Mon, Feb 20, 2017 at 10:42 PM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi Sabet</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">auto outInterest = make_shared<Interest>(inIntere<wbr>st);</div><div dir="auto">outInterest->setInterestLifeti<wbr>me(time::milliseconds(500));</div><div dir="auto">this->sendInterest(pitEntry, outFace, *outInterest);</div><div dir="auto"><br></div><div dir="auto">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.</div><span><div dir="auto"><div class="gmail_extra" dir="auto"><div class="gmail_quote"><blockquote class="m_-3415664775024811066m_-328890641333794438quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:tahoma,sans-serif"></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra" dir="auto"><div class="gmail_quote"><blockquote class="m_-3415664775024811066m_-328890641333794438quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><br></div><div style="font-family:tahoma,sans-serif">I can make a copy of Interest and modify it. How can I get it Forwarder::startProcessInteres<wbr>t to make it pass forwarding pipeline again? I mean, what about the incoming face? Any suggestion?<br></div></div></blockquote></div></div></div></span><div dir="auto">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)</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div></div>
</blockquote></div><br></div></div>
</blockquote></div></div>