mirror-linux/tools/net/ynl/pyynl/lib
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>
2025-09-16 08:16:57 -07:00
..
__init__.py tools: ynl: remove unused imports 2025-09-10 18:08:59 -07:00
doc_generator.py tools: ynl: rst: display attribute-set doc 2025-09-15 18:27:19 -07:00
nlspec.py tools: ynl: remove unnecessary semicolons 2025-09-10 18:09:00 -07:00
ynl.py tools: ynl: add ipv4-or-v6 display hint 2025-09-16 08:16:57 -07:00