svn commit: r253504 - head/sbin/route
Dimitry Andric
dim at FreeBSD.org
Tue Jul 23 22:39:27 UTC 2013
On Jul 20, 2013, at 18:46, Hiroki Sato <hrs at FreeBSD.org> wrote:
> Author: hrs
> Date: Sat Jul 20 16:46:51 2013
> New Revision: 253504
> URL: http://svnweb.freebsd.org/changeset/base/253504
>
> Log:
> - Simplify getaddr() and print_getmsg() by using RTAX_* instead of RTA_*
> as the argument.
> - Reduce unnecessary loop in print_getmsg().
>
> Modified:
> head/sbin/route/route.c
Hi,
This breaks /etc/rc.d/defaultroute, since it relies on "route -n get
-inet default" printing a line with "interface:" in it. Before r253504
it prints:
route to: 0.0.0.0
destination: 0.0.0.0
mask: 56.18.1.0
gateway: router.example.com
fib: 0
interface: em0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
(note also the mask seems to be busted, and even though -n is given, the
hostname of the gateway is printed, but this is another issue)
At r253504 it gives:
route to: 0.0.0.0
destination: 0.0.0.0
mask: 56.18.1.0
gateway: router.example.com
fib: 0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
So for some reason, the interface: line is gone..
-Dimitry
More information about the svn-src-head
mailing list