On 2026-02-24 06:56, Stefano Brivio wrote:
On Mon, 16 Feb 2026 15:57:41 -0500 Jon Maloy
wrote: We extend the -a/--address option to accept addresses in CIDR notation (e.g., 192.168.1.1/24 or 2001:db8::1/64) as an alternative to using separate -a and -n options.
We add a new inany_prefix_pton() helper function that: - Parses address strings with a compulsory /prefix_len suffix - Validates prefix length based on address family (0-32 for IPv4, 0-128 for IPv6), including handling of IPv4-to-IPv6 mapping case.
For IPv4, the prefix length is stored in ip4.prefix_len when provided. For IPv6, the given prefix length is still overridden by the default value 64
Mixing -n and CIDR notation results in an error to catch likely user mistakes.
Also fix a bug in conf_ip4_prefix() that was incorrectly using the global 'optarg' instead of its 'arg' parameter.
Applied, apologies for the delay.
At the same time, this still had the conflict with commit 0c611bcd3120 ("ip: Add ipproto_name() function"), which I already reported on v9, two weeks ago, asking to rebase. It's small things but it all adds up.
Yeah, I rebased for the large series, which of course comprised rebase of this one too, but I forgot to re-post it.MR#466, qemu-kvm-9.8 ///j