svn commit: r253504 - head/sbin/route

Hiroki Sato hrs at FreeBSD.org
Wed Jul 24 04:06:50 UTC 2013


Dimitry Andric <dim at FreeBSD.org> wrote
  in <36E48152-1A64-432D-A32D-75059A56E181 at FreeBSD.org>:

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

 Should be fixed in r253589.  Sorry for the breakage.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20130724/5b9e54ab/attachment-0001.sig>


More information about the svn-src-head mailing list