Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2013 08:56:14 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        dim@FreeBSD.org
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r253504 - head/sbin/route
Message-ID:  <20130724.085614.2164169266116807765.hrs@allbsd.org>
In-Reply-To: <36E48152-1A64-432D-A32D-75059A56E181@FreeBSD.org>
References:  <201307201646.r6KGkpM6054344@svn.freebsd.org> <36E48152-1A64-432D-A32D-75059A56E181@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Wed_Jul_24_08_56_14_2013_916)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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

di> On Jul 20, 2013, at 18:46, Hiroki Sato <hrs@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

----Security_Multipart(Wed_Jul_24_08_56_14_2013_916)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iEYEABECAAYFAlHvGB4ACgkQTyzT2CeTzy26JgCgjUCXO+5qutYBakFiliwrv6oZ
RgIAoMH/g1s4xWbWmrv1O/tCoa2wVw/j
=g5Pa
-----END PGP SIGNATURE-----

----Security_Multipart(Wed_Jul_24_08_56_14_2013_916)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130724.085614.2164169266116807765.hrs>