<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"><base href="x-msg://1258/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Yakun,<div><br></div><div>If you want to create and send out a slightly modified Interest inside the forwarding strategy, you can do something similar to what is done in nacks.cc: you create a new Interest, based on the existing interest that you have and then "replace" necessary parts (name).  For example,</div><div><br></div><div>...</div><div>Ptr<Interest> newInterest = Create<Interest> (*header);</div><div>newInterest->SetName (Create<Name> ("/some/new/name"));</div><div><br></div><div>Ptr<Packet> packet = Create<Packet> ();</div><div>nonNackInterest->AddHeader (*nonNackHeader);</div><div>...</div><div><br></div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Mar 17, 2013, at 7:13 AM, "徐雅琨" <11111015@<a href="http://bjtu.edu.cn">bjtu.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="#ffffff" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; margin: 10px; font-family: verdana; font-size: 10pt; "><div><font color="#000080" size="2">Hi Alex,</font></div><div><font color="#000080">I add few new bits in the name prefix as you suppose and these new bits in the prefix should not be handlled as the header name.<span class="Apple-converted-space"> </span></font><font color="#000080">So I wanna add a new header similiar to<span class="Apple-converted-space"> </span><em>Ptr<const InterestHeader> header<span class="Apple-converted-space"> </span></em>in forwarding-strategy.cc except for the name. In other words, I wanna reset the name in<span class="Apple-converted-space"> </span><em>Ptr<const InterestHeader> header.</em></font></div><div><font color="#000080">I guess the router can only read NDN package without any modification.</font></div><div><font color="#000080">Confusing~~~~</font></div><div><font color="#000080"></font></div><div> </div><div> </div><div align="left"><font color="#c0c0c0">祝您工作顺利,身体健康!</font></div><div align="left"><font color="#c0c0c0">2013-03-17</font></div><hr align="left" size="2" style="width: 122px; height: 2px; "><div><font color="#c0c0c0">徐雅琨</font></div></div></blockquote></div></div></body></html>