<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I'm at a loss as to an explanation for this. Have you tried doing
a "./waf distclean" and then rebuilding from scratch, starting
with "./waf configure"?</p>
<p>Eric<br>
</p>
<br>
<div class="moz-cite-prefix">On 01/04/2018 07:47 PM, 小杰许 wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGx6dK0dMpxFaMvVCENDJBqCFxGpGu=LDbt5ZoC23WKJ67gLfw@mail.gmail.com">
<div dir="ltr">I use 902 for this field and I get the same error.
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-01-05 10:45 GMT+08:00 小杰许 <span
dir="ltr"><<a href="mailto:xujunjie1221@gmail.com"
target="_blank" moz-do-not-send="true">xujunjie1221@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>I used these.</div>
<div><br>
</div>
ndn-cxx (0.6.0-20-g82d6a4c)
<div><br>
</div>
<div>NFD(0.6.0-14-g4738f15)</div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-01-05 10:19 GMT+08:00
Eric Newberry <span dir="ltr"><<a
href="mailto:enewberry@email.arizona.edu"
target="_blank" moz-do-not-send="true">enewberry@email.arizona.edu</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>I believe the 832 TLV-TYPE you used below
overlaps with the existing CongestionMark
TLV-TYPE (also 832). What release of ndn-cxx
and NFD are you modifying? If it's 0.5.1 or
later, this field should be present.<span
class="m_1384739193323471671HOEnZb"><font
color="#888888"><br>
</font></span></p>
<span class="m_1384739193323471671HOEnZb"><font
color="#888888">
<p>Eric<br>
</p>
</font></span>
<div>
<div class="m_1384739193323471671h5"> <br>
<div
class="m_1384739193323471671m_578113189133463156moz-cite-prefix">On
01/04/2018 07:13 PM, 小杰许 wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Thanks for your reply!
<div> </div>
<div>Actually, I have done this steps
before, but it didn't work and I still
meet the problem.</div>
<div><br>
</div>
<div>I modified these files. </div>
<div><br>
</div>
<div>A、in ndn-cxx/src/lp</div>
<div>1、fields.hpp</div>
<div>
<div>typedef
FieldDecl<field_location_tags:<wbr>:Header,</div>
<div> uint64_t,</div>
<div>
tlv::CustomMark> CustomMarkField;</div>
<div>BOOST_CONCEPT_ASSERT((Field<Cu<wbr>stomMarkField>));</div>
</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div> CustomMarkField,</div>
<div><br>
</div>
<div> > FieldSet;</div>
</div>
<div><br>
</div>
<div>2、tags.hpp</div>
<div>typedef SimpleTag<uint64_t,
0x60000002> CustomMarkTag;<br>
</div>
<div><br>
</div>
<div>3、tlv.hpp</div>
<div> CustomMark = 832,<br>
</div>
<div><br>
</div>
<div>B、in ndn-cxx/src</div>
<div>face.cpp</div>
<div>
<div>extractLpLocalFields(NetPkt&
netPacket, const lp::Packet&
lpPacket)</div>
<div>{</div>
<div> .......</div>
<div>
addTagFromField<lp::CustomMark<wbr>Tag,
lp::CustomMarkField>(netPacket<wbr>,
lpPacket);</div>
<div>}</div>
</div>
<div> C、ndn-cxx/src/detail</div>
<div>face-impl.hpp</div>
<div><br>
</div>
<div>
<div>void</div>
<div> asyncPutData(const Data&
data)</div>
<div> {</div>
<div> .........</div>
<div>
addFieldFromTag<lp::Congestion<wbr>MarkField,
lp::CongestionMarkTag>(lpPacke<wbr>t,
data);</div>
<div>
addFieldFromTag<lp::CustomMark<wbr>Field,
lp::CustomMarkTag>(lpPacket,
data);</div>
<div><br>
</div>
<div> .........</div>
<div> }</div>
</div>
<div><br>
</div>
<div>D、NFD/daemon/face</div>
<div>generic-link-service.cpp</div>
<div><br>
</div>
<div>encodeLpFields</div>
<div><br>
</div>
<div>
<div>void</div>
<div>GenericLinkService::encodeLpFi<wbr>elds(const
ndn::PacketBase& netPkt,
lp::Packet& lpPacket)</div>
<div>{</div>
<div> ......</div>
<div>
shared_ptr<lp::CustomMarkTag>
customMarkTag =
netPkt.getTag<lp::CustomMarkTa<wbr>g>();</div>
<div> if (customMarkTag != nullptr) {</div>
<div>
lpPacket.add<lp::customMarkFie<wbr>ld>(*customMarkTag);</div>
<div> }</div>
<div>.....</div>
<div>}</div>
</div>
<div><br>
</div>
<div>decodeData</div>
<div><br>
</div>
<div>
<div>void</div>
<div>GenericLinkService::decodeData<wbr>(const
Block& netPkt, const
lp::Packet& firstPkt)</div>
<div>{</div>
<div> ......</div>
<div><br>
</div>
<div> if
(firstPkt.has<lp::CustomMarkFi<wbr>eld>())
{</div>
<div>
data->setTag(make_shared<lp::C<wbr>ustomMarkTag>(firstPkt.get<lp:<wbr>:CustomMarkField>()));</div>
<div> }</div>
<div><br>
</div>
<div> ......</div>
<div>}</div>
</div>
<div><br>
</div>
<div>That's all I have done. But I still
get the error when I compile NFD. Here
is beginning of the error:</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>Waf: Entering directory
`/home/icpclient1/NFD/build'</div>
<div>[ 73/157] Compiling
daemon/face/generic-link-servi<wbr>ce.cpp</div>
<div>In file included from
/usr/local/include/ndn-cxx/lp/<wbr>packet.hpp:25:0,</div>
<div> from
../daemon/face/lp-fragmenter.h<wbr>pp:31,</div>
<div> from
../daemon/face/generic-link-se<wbr>rvice.hpp:30,</div>
<div> from
../daemon/face/generic-link-se<wbr>rvice.cpp:26:</div>
<div>/usr/local/include/ndn-cxx/lp/<wbr>fields.hpp:78:19:
error: ‘CustomMark’ is not a member
of ‘ndn::lp::tlv’</div>
<div>
tlv::CustomMark>
CustomMarkField;</div>
<div> ^</div>
<div>/usr/local/include/ndn-cxx/lp/<wbr>fields.hpp:78:19:
error: ‘CustomMark’ is not a member
of ‘ndn::lp::tlv’</div>
<div>/usr/local/include/ndn-cxx/lp/<wbr>fields.hpp:78:33:
error: template argument 3 is
invalid</div>
<div>
tlv::CustomMark>
CustomMarkField;</div>
</div>
<div><br>
</div>
<div>Do I miss some steps? Can you give
me some suggestions? Thanks.</div>
<div><br>
</div>
<div>Yours,</div>
<div>Junjie Xu</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-01-05 3:00
GMT+08:00 Eric Newberry <span
dir="ltr"><<a
href="mailto:enewberry@email.arizona.edu"
target="_blank"
moz-do-not-send="true">enewberry@email.arizona.edu</a>></span>:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF">
<p>Junjie,</p>
<p>In order for the tag to be
encoded and decoded properly by
the LinkService, you need to
assign it a TLV-TYPE in
ndn-cxx's source file
lp/tlv.hpp. For example, the
NextHopFaceId tag has a TLV-TYPE
of 816.<br>
</p>
<p>Eric<br>
</p>
<div>
<div
class="m_1384739193323471671m_578113189133463156h5">
<br>
<div
class="m_1384739193323471671m_578113189133463156m_-4142178463563934600moz-cite-prefix">On
01/04/2018 02:40 AM, 小杰许
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div
class="m_1384739193323471671m_578113189133463156h5">
<div dir="ltr">
<div
style="font-size:14px">I
meet some problems when
I try to add a new field
in data in NFD-dev by
using tags. And I found </div>
<div
style="font-size:14px">someone
have met the same
problems before.
<div><br>
</div>
<div>here is the website
of of the problem<br>
<div><a
href="http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2017-August/002611.html"
target="_blank"
moz-do-not-send="true">http://www.lists.cs.ucla.edu/p<wbr>ipermail/nfd-dev/2017-August/0<wbr>02611.html</a><br>
</div>
</div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap">
</span></div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap">I follow all the steps above, </span><span style="color:rgb(0,0,0);white-space:pre-wrap">defined </span><span style="color:rgb(0,0,0);white-space:pre-wrap">LpHeaderField. defined Tag, assigned a tag number, but with CacheMarkTag instead. Then I compile ndn-cxx, it works well. </span></div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap">
</span></div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap">But when I modify my NFD LinkService to encode and decode the new tag.</span></div>
<div>
<pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="font-family:arial,sans-serif">I get the error "error: ‘XXXTag’ is not a member of "ndn::lp::tlv" and other errors. Can you give me some advices?</span></pre>
</div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap">
</span></div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap">Looking forward to your reply.</span></div>
</div>
<div
style="font-size:14px"><span style="color:rgb(0,0,0);white-space:pre-wrap">
</span></div>
<div
style="font-size:14px"><span style="color:rgb(0,0,0);white-space:pre-wrap">
</span></div>
<div
style="font-size:14px"><span style="color:rgb(0,0,0);white-space:pre-wrap">Yours,</span></div>
<div
style="font-size:14px"><span style="color:rgb(0,0,0);white-space:pre-wrap">Junjie Xu</span></div>
</div>
<br>
<fieldset
class="m_1384739193323471671m_578113189133463156m_-4142178463563934600mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Nfd-dev mailing list
<a class="m_1384739193323471671m_578113189133463156m_-4142178463563934600moz-txt-link-abbreviated" href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank" moz-do-not-send="true">Nfd-dev@lists.cs.ucla.edu</a>
<a class="m_1384739193323471671m_578113189133463156m_-4142178463563934600moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" target="_blank" moz-do-not-send="true">http://www.lists.cs.ucla.edu/m<wbr>ailman/listinfo/nfd-dev</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>