[Nfd-dev] Adding a new field into data with help of Tag

Eric Newberry enewberry at email.arizona.edu
Thu Jan 4 11:00:27 PST 2018


Junjie,

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.

Eric


On 01/04/2018 02:40 AM, 小杰许 wrote:
> I meet some problems when I try to add a new field in data in NFD-dev 
> by using tags. And I found
> someone have met the same problems before.
>
> here is the website of of the problem
> http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2017-August/002611.html 
> <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2017-August/002611.html>
> I follow all the steps above, defined LpHeaderField. defined Tag, 
> assigned a tag number, but with CacheMarkTag instead. Then I compile 
> ndn-cxx, it works well.
> But when I modify my NFD LinkService to encode and decode the new tag.
> I get the error "error: ‘XXXTag’ is not a member of "ndn::lp::tlv" and 
> other errors. Can you give me some advices?
> Looking forward to your reply.
> Yours,
> Junjie Xu
>
>
> _______________________________________________
> Nfd-dev mailing list
> Nfd-dev at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20180104/1da12f6f/attachment.html>


More information about the Nfd-dev mailing list