[Bug 276092] "route add 10/8 ip" adds 0.0.0.0/8, not 10.0.0.0/8

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 03 Jan 2024 06:59:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276092

            Bug ID: 276092
           Summary: "route add 10/8 ip" adds 0.0.0.0/8, not 10.0.0.0/8
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: grey.leo@gmail.com

Hi!

It seems
route add D/N ip
does not work anymore (after upgrade from 12.4 to 13.2).
If D is only octet (without dots) and N is any (32,...,8,7...)
then route adds net 0.0.0.0/N

Example: route add 10/8 192.168.0.1

netstat -anr
Destination        Gateway            Flags     Netif Expire
0.0.0.0/8          192.168.0.1        UGS       re0

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