Closed edmonds closed 7 years ago
On writing this up I did consider using the ethertype field (e.g. 0x0800 for IPv4, 0x86dd for IPv6) but my conclusion was that since things like ACLs etc are only ever implemented in terms of IP address, there was no point using a field that represents non-IP protocols.
I didn't know that ECS used this, and if I had spotted it (i.e. been paying that much attention to a "bad idea" draft) I would've objected to it...
I note that RFC 7871 only defines this field as valid for 2 of the possible values anyway, i.e. those for IPv4 and IPv6. I don't think the code re-use opportunities merit making this change.
OK, fair enough, there are only so many ways to specify an enum with two values.
This does make the option IN
class-specific, I guess :-)
EDNS OPT RRs have no class - that field is used for the UDP payload size instead ;)
Hi, Ray:
Please consider borrowing the
FAMILY
field from the EDNS client subnet option. This PR borrows some language from RFC 7871.The
Address_Family_Numbers
reference is:(Not entirely sure how to add a reference using this document format.)
Thanks!