dns-stats / draft-dns-capture-format

I-D for C-DNS file format
4 stars 4 forks source link

Consider specifying indefinite length or fixed length for maps and arrays #36

Closed banburybill closed 6 years ago

banburybill commented 7 years ago

Parsing is easier if you know when arrays and maps are indeterminate length and when fixed length. In particular, validating that the outer array is exactly 3 items. Trivial if fixed length, and complex to do if indeterminate without reading the entire file.

banburybill commented 6 years ago

Similarly, reading the block tables is smoothed if we know the size of the array to be read in advance.

Possibly we should recommend ('SHOULD'?) the representation?

banburybill commented 6 years ago

See Stephane, https://mailarchive.ietf.org/arch/msg/dnsop/0NQZx6oMitWkzj87CWHS4srSeSs

banburybill commented 6 years ago

We're in the "Read RFC 7049, you CBOR n00b" camp. We should not be treading on CBOR toes by issuing general guidance on CBOR.