Date: Sat, 4 May 2024 20:50:39 +0100 From: Lexi Winter <lexi@le-fay.org> To: Jessica Clarke <jrtc27@freebsd.org> Cc: arch@freebsd.org, net@freebsd.org Subject: Re: review request: changing the default ifconfig(8) address format to CIDR Message-ID: <ZjaRjy9f7G0TSwd4@ilythia.eden.le-fay.org> In-Reply-To: <2A85E653-1228-4635-83A4-BED72AEE9420@freebsd.org> References: <ZjZVaxzdMehqqci_@ilythia.eden.le-fay.org> <2A85E653-1228-4635-83A4-BED72AEE9420@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <lexi@le-fay.org> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZjaRjy9f7G0TSwd4>