From nobody Sat May 4 19:50:39 2024 X-Original-To: arch@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VWyvh4Gx4z5JT9h; Sat, 4 May 2024 19:50:40 +0000 (UTC) (envelope-from lexi@le-fay.org) Received: from fuchsia.eden.le-Fay.ORG (fuchsia.eden.le-fay.org [81.187.47.195]) by mx1.freebsd.org (Postfix) with ESMTP id 4VWyvh3bW5z4GGh; Sat, 4 May 2024 19:50:40 +0000 (UTC) (envelope-from lexi@le-fay.org) Authentication-Results: mx1.freebsd.org; none Received: from iris.eden.le-Fay.ORG (iris.eden.le-fay.org [IPv6:2001:8b0:aab5:106:3::6]) by fuchsia.eden.le-Fay.ORG (Postfix) with ESMTP id 8A80DA88B; Sat, 04 May 2024 19:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=le-fay.org; s=fuchsia; t=1714852239; bh=yVnKxmyckbNoOG0JSW6AXT3CjnX3hd9Zb9S4m1D8ons=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=sclHb0DnW/v6MDIgywrSstumVw38uluNlXnRZ5WEaHLy7iRc5fi57wc2mDYuvnlAZ IuX1DuspSC2c/aXGIPh92E7DoD/m3ZFm4M9kxaBZ1Tqq3gLq6xd/yNwkw+C3SgWiC7 CqMhRWSi6WWG/3vj0jCp4Pt33DVszedWhsVB6Bww= Received: from ilythia.eden.le-fay.org (ilythia.eden.le-fay.org [IPv6:2001:8b0:aab5:106:3::10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by iris.eden.le-Fay.ORG (Postfix) with ESMTPSA id D1E6B2C0421; Sat, 04 May 2024 20:50:39 +0100 (BST) Date: Sat, 4 May 2024 20:50:39 +0100 From: Lexi Winter To: Jessica Clarke Cc: arch@freebsd.org, net@freebsd.org Subject: Re: review request: changing the default ifconfig(8) address format to CIDR Message-ID: Mail-Followup-To: Jessica Clarke , arch@freebsd.org, net@freebsd.org References: <2A85E653-1228-4635-83A4-BED72AEE9420@freebsd.org> List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uGq1e1iwJkdg74dg" Content-Disposition: inline In-Reply-To: <2A85E653-1228-4635-83A4-BED72AEE9420@freebsd.org> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20712, ipnet:81.187.0.0/16, country:GB] X-Rspamd-Queue-Id: 4VWyvh3bW5z4GGh --uGq1e1iwJkdg74dg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Jessica Clarke: > On 4 May 2024, at 16:34, Lexi Winter wrote: > Do we need to care about supporting (/ do we currently support) > historical non-contiguous netmasks? At a glance the CIDR code doesn=E2=80= =99t > handle that and will stop at the first 0, so changing to that by > default would break such setups. i have never had a need to try this, but i just tested it and it does not appear to be supported at least in 15.0: # ifconfig bridge2 create # ifconfig bridge2 192.0.2.1 netmask 255.0.255.0 # ifconfig bridge2 bridge2: flags=3D1008843 m= etric 0 mtu 1500 options=3D0 ether 58:9c:fc:00:16:69 inet 192.0.2.1 netmask 0xffff0000 broadcast 192.0.255.255 [snip] # ifconfig bridge2 destroy # ifconfig bridge2 create # ifconfig bridge2 192.0.2.1 netmask 255.255.255.88 # ifconfig bridge2 bridge2: flags=3D1008843 m= etric 0 mtu 1500 options=3D0 ether 58:9c:fc:00:16:69 inet 192.0.2.1 netmask 0xffffffe0 broadcast 192.0.2.31 [snip] (0xffffffe0 =3D 255.255.255.224) a quick Internet search suggests that non-contiguous netmasks were deprecated when CIDR was introduced, so around 1993. --uGq1e1iwJkdg74dg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEuwt6MaPcv/+Mo+ftDHqbqZ41x5kFAmY2kYwACgkQDHqbqZ41 x5mQNwv8D+5WX257JQXFthozh0HwRkhRsqM425M4eGd/DzATCFlh0qG5zxA8u7NQ alHaVuLA2s2DtBXvzyBVpfFc5+/rNK92XAMIU6RjCdsqOyNzZ6NZHZb0phDhfz8s o/n2w1r9BeyIH1jbruD9h9uvcDDrQI2BLORcWcSk6s7aQEr3oVtpXcwYlQZhCXx1 jAXgdUtpNzEeJ4V96SeZBe5nmHTqO+PmPrVI64osPEtBfdiEo36NCHemKeri3h7b vhuv2nb1VOXNysBGtw5Klb/6jemIExknhsAXzv8whrnAZex5dAPRh1ZhPfuDZthK xnr7PgkjePp2BOrbli85UhhiLokjgMPpRcxD5zEAjurxfZbZrqAXZLXbJNRobHK9 t0/231XRx1sOXaTvd8qna2zfllZKPhyi5DNqK6A9Vr66IHqh7u0s2PM9YqAD26pK XeU6m4fuIhxNeD2yR4xT9B5crILs1jSjKpJLeokBCdXmn/snk3Je6SrnDbcZXSDw CJZZOeqK =LucQ -----END PGP SIGNATURE----- --uGq1e1iwJkdg74dg--