Project

General

Profile

Actions

Bug #4926

closed

Data.wireDecode is possibly forcing the presence of metainfo tlv block

Added by Edward Lu almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
05/05/2019
Due date:
% Done:

0%

Estimated time:

Description

Hello,

I have been trying to decode a data packet encoded by the ndn-lite library, and it seems like the wire decoding of the jndn library assumes that a metainfo tlv block has to be present, even though it is optional in the Data packet specification (https://named-data.net/doc/NDN-packet-spec/current/data.html). Because of this, I get an error when trying to decode a wire encoded data packet that does not contain a metainfo tlv block.

I feel like this is likely some mistake on my part, but I cannot find where the correct data decoding function I should use to ignore these optional tlv blocks is.

I have attached screenshots of the code and output.


Files

Actions

Also available in: Atom PDF