Project

General

Profile

Feature #4658

Updated by Junxiao Shi almost 6 years ago

Extend `ndn::Interest` class to encode and decode **Parameters** element. 
 This is part of [[nfd:Packet03Transition]]. 

 `Interest::wireEncode` function should support both v0.2 and v0.3 format. 
 If Parameters element is present, it encodes to v0.3 format; when v0.3 format is selected, if any v0.2-only element (such as MinSuffixComponents) was specified, they would not appear in the encoded packet. 
 Otherwise, it encodes to v0.2 format. 

 `Interest::decode03` function should recognize and store Parameters element. 
 `Interest::decode02` function remains unchanged.

Back