Carsten Bormann <[email protected]> wrote: > You forced me to get a bigger screen... > I don’t know what you are trying to say here:
>> On 13. Dec 2020, at 20:43, Michael Richardson <[email protected]>
>> wrote:
>>
>> I guess I'm still confused by why this is: [
>> [objective1],[locator2-option], [objective2],[locator2-option],...]
>>
>> and not: [ [objective1, locator2-option], [objective2,
>> locator2-option],...]
>>
>> or maybe: [ [[objective1], [locator2-option]], [[objective2],
>> [locator2-option]],…]
> An objective already is an array, so there is little point in putting
> array brackets around one.
> [foo, bar, baz, bat, [obj1, loc1]]
> Is a valid instance as is
> [foo, bar, baz, bat, [obj1, loc1], [obj2, loc2]]
I see.
I thought it was:
[foo, bar, baz, bat, [[obj1, loc1], [obj2, loc2]]]
but I understand the CDDL better now.
> So the packet decode you captured is right, and the version with the
> added one-element array (0x81) does not match the CDDL.
The original capture was, to repeat:
[9, 3591865773, h'2607F0B0000F000200000000000005F7', 120000,
[
["AN_join_registrar", 5, 1, "EST-TLS"],
[103, h'2607F0B0000F000200000000000005F7', 6, 80]
]
]
So, if there were two objectives, it would be:
[9, 3591865773, h'2607F0B0000F000200000000000005F7', 120000,
[
["AN_join_registrar", 5, 1, "EST-TLS"],
[103, h'2607F0B0000F000200000000000005F7', 6, 80]
],
[
["AN_more_funr", 5, 1, "EST-TLS"],
[104, h'2607F0B0', 6, 80]
]
]
--
] Never tell me the odds! | ipv6 mesh networks [
] Michael Richardson, Sandelman Software Works | IoT architect [
] [email protected] http://www.sandelman.ca/ | ruby on rails [
--
Michael Richardson <[email protected]> . o O ( IPv6 IøT consulting )
Sandelman Software Works Inc, Ottawa and Worldwide
signature.asc
Description: PGP signature
_______________________________________________ Anima mailing list [email protected] https://www.ietf.org/mailman/listinfo/anima
