<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body 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>
<br>
<div class="moz-cite-prefix">On 01/04/2018 02:40 AM, 小杰许 wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGx6dK252cz3EPupij68wuSq91fo1nK_-FmNjktqrmSxu=H26w@mail.gmail.com">
<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="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Nfd-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>