<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type><BASE
href="x-msg://1258/">
<META name=GENERATOR content="MSHTML 9.00.8112.16464">
<STYLE>@font-face {
font-family: 宋体;
}
@font-face {
font-family: Verdana;
}
@font-face {
font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}
UNKNOWN {
FONT-SIZE: 10pt
}
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2>Thanks very much, Alex. </FONT></DIV>
<DIV>newInterest->SetName (Create<Name> ("/some/new/name")) can work;
(I missed <EM><FONT color=#ff0000>Create<Name>
()</FONT></EM> .)</DIV>
<DIV>I should read the source code carefully beforehand.</DIV>
<DIV><FONT color=#000080 size=2></FONT> </DIV>
<DIV><FONT color=#000080>Yakun Xu</FONT></DIV>
<DIV><FONT color=#000080 size=2></FONT> </DIV>
<DIV><FONT color=#c0c0c0 size=2>2013-03-18 </FONT></DIV><FONT color=#000080
size=2>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2><SPAN>徐雅琨</SPAN> </FONT></DIV>
<HR color=#b5c4df SIZE=1>
<DIV><FONT size=2><STRONG>发件人:</STRONG> Alex Afanasyev </FONT></DIV>
<DIV><FONT size=2><STRONG>发送时间:</STRONG> 2013-03-18 09:37:36 </FONT></DIV>
<DIV><FONT size=2><STRONG>收件人:</STRONG> "徐雅琨" </FONT></DIV>
<DIV><FONT size=2><STRONG>抄送:</STRONG> ndnsim </FONT></DIV>
<DIV><FONT size=2><STRONG>主题:</STRONG> Re: [ndnSIM] forwarding-strategy.cc
</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>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
style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 10px; LETTER-SPACING: normal; FONT: 10pt verdana; WHITE-SPACE: normal; ORPHANS: 2; WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"
bgcolor="#ffffff">
<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 style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT
color=#c0c0c0>徐雅琨</FONT></DIV></DIV></BLOCKQUOTE></DIV></DIV></FONT></DIV></BODY></HTML>