linux/Documentation/netlink
Asbjørn Sloth Tønnesen 1b255e1bea tools: ynl: add ipv4-or-v6 display hint
The attribute WGALLOWEDIP_A_IPADDR can contain either an IPv4
or an IPv6 address depending on WGALLOWEDIP_A_FAMILY, however
in practice it is enough to look at the attribute length.

This patch implements an ipv4-or-v6 display hint, that can
deal with this kind of attribute.

It only implements this display hint for genetlink-legacy, it
can be added to other protocol variants if needed, but we don't
want to encourage it's use.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250915144301.725949-12-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
History 2025-09-16 08:16:57 -07:00
..
specs netlink: specs: explicitly declare block scalar strings 2025-09-15 18:27:19 -07:00
genetlink-c.yaml netlink: specs: allow header properties for attribute sets 2025-04-23 16:07:15 -07:00
genetlink-legacy.yaml tools: ynl: add ipv4-or-v6 display hint 2025-09-16 08:16:57 -07:00
genetlink.yaml netlink: specs: enforce strict naming of properties 2025-06-25 15:36:28 -07:00
netlink-raw.yaml netlink: specs: enforce strict naming of properties 2025-06-25 15:36:28 -07:00