Project

General

Profile

Actions

Feature #4221

open

Relax decoding of out-of-order TLV sub-elements in NFD management protocol

Added by Junxiao Shi over 7 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Management
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
6.00 h

Description

Protocols that use TLV sub-elements generally define a certain order in which TLV elements should appear.
Two styles of wireDecode functions exist in ndn-cxx codebase: some can accept out-of-order TLV sub-elements, and ignore unrecognized sub-elements; others fail the decoding if a sub-element is out-of-order or unrecognized.

According to RFC1122 section-1.2.2:

At every layer of the protocols, there is a general rule whose application can lead to enormous benefits in robustness and interoperability:
"Be liberal in what you accept, and conservative in what you send"

This issue shall convert wireDecode functions in mgmt/ to use the first style. It also makes changing the Management protocol easier.

Actions

Also available in: Atom PDF