From owner-svn-src-head@FreeBSD.ORG Tue Jul 23 22:39:27 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1E145B67; Tue, 23 Jul 2013 22:39:27 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D68D32A0E; Tue, 23 Jul 2013 22:39:26 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::edc1:b60c:f542:38d1] (unknown [IPv6:2001:7b8:3a7:0:edc1:b60c:f542:38d1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id A6EC85C5A; Wed, 24 Jul 2013 00:39:16 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: svn commit: r253504 - head/sbin/route From: Dimitry Andric In-Reply-To: <201307201646.r6KGkpM6054344@svn.freebsd.org> Date: Wed, 24 Jul 2013 00:39:15 +0200 Content-Transfer-Encoding: 7bit Message-Id: <36E48152-1A64-432D-A32D-75059A56E181@FreeBSD.org> References: <201307201646.r6KGkpM6054344@svn.freebsd.org> To: Hiroki Sato X-Mailer: Apple Mail (2.1508) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 22:39:27 -0000 On Jul 20, 2013, at 18:46, Hiroki Sato 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: 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: 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