Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Oct 2021 18:28:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 258874] route add -inet 240/4 results in 0.0.0.0/4 127.0.0.1 UGRS lo0
Message-ID:  <bug-258874-7501-OIlReZJJE8@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258874-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258874-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258874

--- Comment #5 from Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> ---
(In reply to Mike Karels from comment #4)
I was expecting the same result (0.0.0.0.0/4, 240 =3D=3D 0.0.0.240 !=3D 240=
.0.0.0),
but I have checked and it came out that for FreeBSD 12 and earlier 240 is
240.0.0.0

Test:
route add -net 240/32 localhost -blackhole=20
netstat -4rn |grep 240

FreeBSD 12.2 and earlier:
240.0.0.0/32       127.0.0.1          UGSB        lo0

FreeBSD 13.0 and later:
0.0.0.240          127.0.0.1          UGHSB       lo0

Linux and FreeBSD 13.0 network stack work the same in this case and IMHO as
expected. Was the old behavior introduced due to any reasons or was it a bu=
g?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258874-7501-OIlReZJJE8>