NetBSD/sbin/route
ozaki-r 09973b35ac Separate nexthop caches from the routing table
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
2016-04-04 07:37:07 +00:00
..
Makefile Include a few additional libc functions in rump.route to make it work with inet6 2015-09-14 05:12:52 +00:00
extern.h Factor out the netstat route printing code and use it here. There is no 2014-11-06 21:29:32 +00:00
keywords.c Separate nexthop caches from the routing table 2016-04-04 07:37:07 +00:00
keywords.h Separate nexthop caches from the routing table 2016-04-04 07:37:07 +00:00
keywords.sh Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
prog_ops.h Factor out the netstat route printing code and use it here. There is no 2014-11-06 21:29:32 +00:00
route.8 Separate nexthop caches from the routing table 2016-04-04 07:37:07 +00:00
route.c Separate nexthop caches from the routing table 2016-04-04 07:37:07 +00:00
route_hostops.c
route_rumpops.c
rtutil.c Separate nexthop caches from the routing table 2016-04-04 07:37:07 +00:00
rtutil.h make netname4 match the netname6 signature avoiding a NULL pointer. 2015-01-07 22:38:32 +00:00
show.c Separate nexthop caches from the routing table 2016-04-04 07:37:07 +00:00