Dimitry Andric <d...@freebsd.org> wrote in <36e48152-1a64-432d-a32d-75059a56e...@freebsd.org>:
di> On Jul 20, 2013, at 18:46, Hiroki Sato <h...@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.. Gr, sorry. This is my fault. I will fix it soon. -- Hiroki
pgpYevUFL0s9j.pgp
Description: PGP signature