[PATCH net-next 11/11] tools: ynl: add ipv4-or-v6 display hint

Donald Hunter donald.hunter at gmail.com
Fri Sep 5 10:54:10 UTC 2025


Asbjørn Sloth Tønnesen <ast at fiberby.net> writes:

> 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 at fiberby.net>

Reviewed-by: Donald Hunter <donald.hunter at gmail.com>

I suspect there are occurrences of ipv4 or ipv6 in the existing specs
that really should be ipv4-or-ipv6 but the python code doesn't care.


More information about the WireGuard mailing list