From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202512 header.b=TXWFEMN/; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 49F9A5A0623 for ; Tue, 27 Jan 2026 10:08:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202512; t=1769504904; bh=27sTrwKhNp8YL1oCeTz8xWd8+Dk9aWaDO729HBj/SFM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TXWFEMN/2mqphgF7cvRmsSoWqC+TJSeSibfOOh1LG9rU1xrTC7NWyssewP2vCuTfH ZxchGsxhUxIh5k7XRBtsMadD6SaHCO7Ti04pLAhPZRY8Cz7LyyMRBEclq783gyZPTf Lgg3C6RGbUGUfMACFhrk2UbIY4VFE22CIAvl7GzWGYVhRzITv3IT+eKDYS02oZPn5p k1uJ8tDL6AIN6wC0tMMeL/0OArJlmFL/GG4vwNdbUMy0vMwFowil/XKAKBhRvF6R1w jcpOYPOZa23KU50GaLQuVMit5m022GfUBvO54wuABnwIwdbLDy2QwZdGqHQ1WzhJIg XJh1i5BzWjZfQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4f0fhS0W3Pz4wB8; Tue, 27 Jan 2026 20:08:24 +1100 (AEDT) Date: Tue, 27 Jan 2026 19:59:22 +1100 From: David Gibson To: Stefano Brivio Subject: Re: [PATCH v2 2/9] ip: Introduce unified multi-address data structures Message-ID: References: <20260118221612.2115386-1-jmaloy@redhat.com> <20260118221612.2115386-3-jmaloy@redhat.com> <20260121140205.63e4acbe@elisabeth> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rJIRkmlEorhBIvrW" Content-Disposition: inline In-Reply-To: <20260121140205.63e4acbe@elisabeth> Message-ID-Hash: UY25JSOYIVDFHR74XPLKZLEDSC5RKSNG X-Message-ID-Hash: UY25JSOYIVDFHR74XPLKZLEDSC5RKSNG X-MailFrom: dgibson@gandalf.ozlabs.org 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: Jon Maloy , dgibson@redhat.com, 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: --rJIRkmlEorhBIvrW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 21, 2026 at 02:02:05PM +0100, Stefano Brivio wrote: > On Sun, 18 Jan 2026 17:16:05 -0500 > Jon Maloy wrote: [snip] > > +/* Flags for struct inany_addr_entry */ > > +#define INANY_ADDR_CONFIGURED (1 << 0) /* User set via -a */ > > +#define INANY_ADDR_HOST (1 << 1) /* From host interface */ > > + > > +/** > > + * struct inany_addr_entry - Unified IPv4/IPv6 address entry > > + * @addr: IPv4 (as mapped) or IPv6 address > > + * @prefix_len: Prefix length (0-32 for IPv4, 0-128 for IPv6) >=20 > This should be 1-32 and 1-128, unless you find a way to make /0 > assignments working (see my comment on 1/9). Here in the data structure it should still be 0-N. We can't make use of a /0 for addresses, but we probably can for routes at some point later. --=20 David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson --rJIRkmlEorhBIvrW Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAml4fl0ACgkQzQJF27ox 2GfjZQ/9GyMjZMjn1L957oQy3RatJ2udZlMF28dW+lPIUVHOM1A8YkDGcSaM9kEC wLIzhLUMUsfp2AKUe4atsc3z573vdOQlEtY7ZKVRUxexAVmT21XYT0nIqfN6urwf 6RsHROB+p5av2Fm96t+bfbY/hcn2BPKrApvbg/Q0ubedi5eEa4pVEDK2AypIk1Et apXhwZUgqL1yd7GF6Oqo3Qm57F59K5XNvLMbn65PGhPfjqv4ytG2rlq9ESFIHxjZ BekXytn9nuhQ7gg6b6AMIs+4GavkhFEcjIeKJigpMKUvEord3NOoNenA8ov1QtN9 VIjvgL1dknp49iloI3KOzlLXcWM3f+waXllrIFdsNnw/SzzE7gZj21ZKdqF6XAVn spfzRlYuPC8lEiqqZ+g181r13X8LIyZmkxBPE29E+onOF1daDHQgcG0zCmXYhvH+ 0pyskHmqgnEIFQLbJnuP2jl1UfbnS4u2T6xBKKZVobkcxYKjGCmEC9/tUo2wpbpd eTO/cOidW2oGUmSXnwcDjhKtz3FDhSZ7Mt6p0X/JD9WS3Ym931PWB/OsJ5mZEqnM gvaRVYVLZslV6fp00xBzcmDeWM92EX7Ly7vKOGTb2AYWV1fC84deRCDTmKBuScWK W4DL77f1EZi1JNI4NaGBec2uOHu1mOLFxqLkuR0NWiJqVesbcIA= =lFbK -----END PGP SIGNATURE----- --rJIRkmlEorhBIvrW--