[Bug 258874] route add -inet 240/4 results in UGRS lo0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 03 Oct 2021 21:35:21 UTC

Alexander V. Chernikov <melifaro@FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |melifaro@FreeBSD.org

--- Comment #6 from Alexander V. Chernikov <melifaro@FreeBSD.org> ---
For the record, the previous behaviour was provided by the following code in

         * MSB of net should be meaningful. 0/0 is exception.
        if (net > 0)
                while ((net & 0xff000000) == 0)
                        net <<= 8;


This part was removed as a classful bits cleanup here:

I have mixed opinions on that.
Using 10/8 or 240/4 is certainly convenient.
However, it effectively goes again the behaviour specified in inet(3), so it
may be a bit confusing for the people w/o muscular memory on remembering that
I'd rather prefer to leave it in a current state.

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