From owner-freebsd-net@FreeBSD.ORG Sun Jun 3 04:51:35 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11C17106566C for ; Sun, 3 Jun 2012 04:51:35 +0000 (UTC) (envelope-from darrenr@freebsd.org) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id CF7FD8FC08 for ; Sun, 3 Jun 2012 04:51:34 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 66EAF20783; Sun, 3 Jun 2012 00:51:34 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute3.internal (MEProxy); Sun, 03 Jun 2012 00:51:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:reply-to :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=2EspuW6WYSdvf4HLHRQL3n 9Ou/A=; b=VpfCXQ2YT5ImamzU0Lc1QbUt3G4ydw6K9bW+3HERskcjxWBFNkXHfs WxQomyfSBp7rkTfyyQLCdSXaw9N/Aqwz7KLHW4OZQhhpbTnUryCuXdmTlNyJ9Hq4 Un2HwUxuDAmRWIDTjrKUyRr6Uc83CYyoMu5m/Doa4fg5BCmXEE9B4= X-Sasl-enc: v9CqkGSHqtuwiRQ8UFrwDxaf47xEyv98pbTgAv5hESjk 1338699093 Received: from [192.168.1.124] (unknown [202.45.110.141]) by mail.messagingengine.com (Postfix) with ESMTPA id 68BB148352D; Sun, 3 Jun 2012 00:51:33 -0400 (EDT) Message-ID: <4FCAEDBC.7080602@freebsd.org> Date: Sun, 03 Jun 2012 14:53:16 +1000 From: Darren Reed Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: "Bjoern A. Zeeb" References: <4FCA36F6.8040308@freebsd.org> <57EDF758-FF3F-4BA5-B44E-398846B92925@lists.zabbadoz.net> In-Reply-To: <57EDF758-FF3F-4BA5-B44E-398846B92925@lists.zabbadoz.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: bin/102701 - ifconfig xx0 inet6 delete always fails X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: darrenr@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2012 04:51:35 -0000 On 3/06/2012 5:11 AM, Bjoern A. Zeeb wrote: > > On 2. Jun 2012, at 15:53 , Darren Reed wrote: > >> Is there any reason that this patch hasn't been applied >> to -current? I've just run into this and I can't believe >> that it still exists, given that it falls into the "low >> hanging fruit" category. I'll note that if it wasn't for >> subversion, I'd be doing a commit rather than an email. > > ifconfig [-L] [-k] [-m] [-n] interface [create] address_family [address > [dest_address]] [parameters] > ... > > > The following parameters may be set with ifconfig: > ... > -alias Remove the network address specified. This would be used if you > incorrectly specified an alias, or it was no longer needed. If > you have incorrectly set an NS address having the side effect of > specifying the host portion, removing all NS addresses will allow > you to respecify the host portion. > ... > delete Another name for the -alias parameter. > > > Parameters go last as clearly stated in the beginning of the man page and > that works well: > > root@lion3:/home/test # ifconfig lo0 inet6 2001:db8:ffff::ffff/128 alias > root@lion3:/home/test # ifconfig lo0 inet6 2001:db8:ffff::ffff/128 delete > root@lion3:/home/test # > > > The fact that for inet you could give it in the beginning and other minor > things leniently allowed have caused a lot of trouble the last years. This also works: ifconfig lo0 inet6 alias 2001:db8:ffff::ffff/128 ... so it seems strange for delete to not also work like that. Anyway, if the current behaviour isn't a bug and that PR won't be fixed (or the patch won't be applied) then someone should close it out. Darren