From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=anWRI7R3; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 9F4825A0265 for ; Tue, 24 Feb 2026 17:17:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771949863; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1v2E8P3TK9obsKZ+/n0FO82kK/zWr8WXEQUc69rxYpY=; b=anWRI7R3BgnhNvOYP3tudKO/sb70OfJmneoOhY2AekgQoyxDgssqcEzZ4XKlmGx2mIAvjT EV6tDnxH3Rh2/fEwyQ/2A0gu/eAaj7hl8RRpUE0YWGjB9podjaVShsPtWU6gzdalXUfKG0 qoz8vF3enuPDY24+W6+cidqn7YXsmPo= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-610-b3t6PAC3NDKa7f-4hFz0qQ-1; Tue, 24 Feb 2026 11:17:42 -0500 X-MC-Unique: b3t6PAC3NDKa7f-4hFz0qQ-1 X-Mimecast-MFC-AGG-ID: b3t6PAC3NDKa7f-4hFz0qQ_1771949862 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-8c711251ac5so4285461385a.1 for ; Tue, 24 Feb 2026 08:17:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771949862; x=1772554662; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1v2E8P3TK9obsKZ+/n0FO82kK/zWr8WXEQUc69rxYpY=; b=QUdMTufEFV5Irm+usAA4Sp/9CLspmC76M1JPiLJDiJuIj1w/sga87e9WB9Bmh5jL3y u7JjBcJXIiTgn90U1UYPBF8iCboF2emt3rmOjT/5qXFFXxwjZSoSRnkHnRMq64x4s0y2 2boo4Nvqn640mv9RnefUDMsqmlJnZsaeKwOx+Mk3YZ2iby5L0r8WX1jJRiuf8IWYS5y0 +7ECY1um4gI7qCGwwnPD4TryMWDuCu8Ru2yfEDhnKjdTeXdGGZb65nzy1VC48uGTuqvr PzI2qe+FeInsTTjC853JAoCC9E5joDRg528GZyVpPm3MmsXLOPP2DEl/BlwRp6kcMkJf 7CpA== X-Forwarded-Encrypted: i=1; AJvYcCUmMbaulAVBpx5cPYe9kbIyL+7hxCdN8NyErznH9RTHxlujmqjSPFbxkBR/A/PMG9d7Y1jvrL6HPYA=@passt.top X-Gm-Message-State: AOJu0YymvAmvVpGz65Ct2pczo3mt7OvFdgsyg9PvGpQ1hxUu/qKHUp5Q eG5DyQITiJ/n6UvDhTjSK+D0F31fOwADz9sYbI5/hdNn+ce8ilklePVfsyka8KpjaMPOeSwm+Hr CDddyVb2nfqOw1Hygiq2LlCY19TLr9dz+ivY8OPiV8urNjYbZ22wnyA== X-Gm-Gg: AZuq6aLvKAWzpvwX+VJGFQtyzEfX3TuyBvEq8JJzpNZjUHGI/YM1PjJVgXSn1ya6M01 T6FSRzuq8nCcDHc2Y79/rUkPLQ8nZYoLqE/jGZdKNfEAgqfCBCjsNVEZ8ce9G7/Zh4mP01k7lFX QLUAPqDJWjoxWJInr+VydEcgDvphNIowMbRdRVl4Fc60pm56PkO5u1Non06mEhmKy4kvNZZj3Qv yD+h6IDgohgnc2S0lDliUBdM/eAs4SqWrGT29zhdfR0OFkUlA43EiSrRxPLJGQo0xzCu/Xue3iu XgpTMOX1/CLEYNekdbyqW9BDcoUZQv2snMBDQmu1oaf0iwBAGbcNySLiBrQAstc0R3DplrzaOwr iqy0OrARjzkUM+ejX6LSBMJdkf7tsdNDxPN4N6kI0XA2A/PzlUCL8bJLTXg8nkyaJ8ZCVC/CU5v 8l3rw9LXwAah5bwQ== X-Received: by 2002:a05:620a:4005:b0:8ca:90de:43f1 with SMTP id af79cd13be357-8cb8ca7f96cmr1735962485a.63.1771949861690; Tue, 24 Feb 2026 08:17:41 -0800 (PST) X-Received: by 2002:a05:620a:4005:b0:8ca:90de:43f1 with SMTP id af79cd13be357-8cb8ca7f96cmr1735952885a.63.1771949860783; Tue, 24 Feb 2026 08:17:40 -0800 (PST) Received: from [192.168.2.15] (lnsm1-montreal01-69-158-139-121.internet.virginmobile.ca. [69.158.139.121]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8cb8d101d77sm1014924785a.37.2026.02.24.08.17.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Feb 2026 08:17:40 -0800 (PST) Message-ID: <7aa24cbf-35eb-4aec-addd-00c8c31698d0@redhat.com> Date: Tue, 24 Feb 2026 11:17:39 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11] conf: Support CIDR notation for -a/--address option To: Stefano Brivio References: <20260216205741.3648357-1-jmaloy@redhat.com> <20260224125638.7251777e@elisabeth> From: Jon Maloy In-Reply-To: <20260224125638.7251777e@elisabeth> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 1OafoA291WQeWdX-YjZHDqOPtVCQqCYniB4Fzm0qWfM_1771949862 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID-Hash: WAPR5HHLG45MT2QH2H77XYJ235SERSAZ X-Message-ID-Hash: WAPR5HHLG45MT2QH2H77XYJ235SERSAZ X-MailFrom: jmaloy@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: dgibson@redhat.com, david@gibson.dropbear.id.au, passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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