Brian E Carpenter <[email protected]> wrote: >> When I read: divert-option = [O_DIVERT, +locator-option] >> >> I think that it means that +locator-option means that one can multiple >> options, and that they would be inside an array? >> >> So, for example: >> >> [O_DIVERT, [ [O_IPv6_LOCATOR, ipv6-address, transport-proto, >> port-number], [O_IPv4_LOCATOR, ipv6-address, transport-proto, >> port-number], [O_FQDN_LOCATOR, ipv6-address, transport-proto, >> port-number]]]
> I'm not sure there's an additional array. CBOR can handle arrays of
> undefined length, so I think that syntax generates
> [O_DIVERT, [O_IPv6_LOCATOR, ipv6-address, transport-proto,
> port-number], [O_IPv4_LOCATOR, ipv6-address, transport-proto,
> port-number], [O_FQDN_LOCATOR, ipv6-address, transport-proto,
> port-number]]
> but I'd rather hear that from Carsten to be sure.
But, have specification like:
response-message = [M_RESPONSE, session-id, initiator, ttl,
(+locator-option // divert-option), ?objective)]
so unless the () implies a level of sub-array, then there would be
some unknown number of location-options, and then the last item would be
objective, *if* it exists.
--
Michael Richardson <[email protected]>, Sandelman Software Works
-= IPv6 IoT consulting =-
signature.asc
Description: PGP signature
_______________________________________________ Anima mailing list [email protected] https://www.ietf.org/mailman/listinfo/anima
