Alexander V. Chernikov d28210b2c2 Remove remnants of classful behavior in route(8).
Curently route(8) treats some addresses as network addresses:

 RTA_DST: inet 10.0.0.0; RTA_NETMASK: inet 255.0.0.0; RTA_IFP: link ;
 RTM_GET: Report Metrics: len 240, pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,STATIC>
 locks:  inits:
 sockaddrs: <DST,NETMASK,IFP>
   10.0.0.0 255.0.0.0 link#0

Note added `RTA_NETMASK` in the request.

Host address from the same network is ok:

route -nv get 10.0.0.1
 RTA_DST: inet 10.0.0.1
 RTA_IFP: link
 RTM_GET: Report Metrics: len 224, pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,HOST,STATIC>
...
   route to: 10.0.0.1
destination: 10.0.0.0
       mask: 255.255.255.0

This change eliminates network auto-guessing part AND reading network from /etc/networks.

Reviewed By: rgrimes

Differential Revision: https://reviews.freebsd.org/D24401
2021-01-16 23:45:30 +00:00
..
2021-01-16 00:07:50 -06:00
2019-11-21 01:24:49 +00:00
2019-11-21 01:24:49 +00:00
2020-10-09 14:03:45 +00:00
2020-12-31 10:29:08 -05:00
2020-05-21 01:55:35 +00:00
2020-10-09 14:03:45 +00:00
2021-01-11 22:30:44 +01:00
2020-11-26 04:29:30 +00:00
2020-11-10 14:17:05 +00:00
2019-12-11 17:37:53 +00:00
2020-07-05 13:08:17 +00:00
2020-12-23 12:45:11 -05:00
2020-11-26 04:29:30 +00:00