From owner-freebsd-net@FreeBSD.ORG Sat Jan 11 20:52:12 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7100A5D8 for ; Sat, 11 Jan 2014 20:52:12 +0000 (UTC) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 32CAE13C9 for ; Sat, 11 Jan 2014 20:52:12 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:9cb5:5294:4115:885b]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id CEEEF4AC31; Sun, 12 Jan 2014 00:52:08 +0400 (MSK) Date: Sun, 12 Jan 2014 00:52:01 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1043056268.20140112005201@serebryakov.spb.ru> To: "Bjoern A. Zeeb" Subject: Re: Merge ping+ping6 and traceroue+traceroute6 to single utilities? In-Reply-To: <1E09095E-82BB-448E-8EE5-52830F664C3D@lists.zabbadoz.net> References: <1063008459.20140111160525@serebryakov.spb.ru> <52D14140.3090003@gibfest.dk> <1218795565.20140111222236@serebryakov.spb.ru> <1E09095E-82BB-448E-8EE5-52830F664C3D@lists.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jan 2014 20:52:12 -0000 Hello, Bjoern. You wrote 11 =D1=8F=D0=BD=D0=B2=D0=B0=D1=80=D1=8F 2014 =D0=B3., 23:39:48: >> >> MM> The ping6 and traceroute6 could be made just links to a common utili= ty >> MM> and turn on the -6 option implicitly. For a transition period I could >> MM> live with the -4 being a default, if that would be a consensus. >> Exactly my point of view. BAZ> Question =E2=80=94 will you preserve (conflicting) command line option= s and if It is good question, indeed. BAZ> it=E2=80=99s one utility and I use a hostname how will it know how to = interpret them? hostname gives ambiguity only if here are both A and AAAA records AND we have both IPv4 and IPv6 addresses configured. In such case we should choose sane default, which could depends on argv[0] :) Also, options parsing could depends on argv[0] too, for backward compatibility. --=20 // Black Lion AKA Lev Serebryakov