From owner-freebsd-net@FreeBSD.ORG Sun Mar 30 07:21:44 2008 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 E8A4A106564A for ; Sun, 30 Mar 2008 07:21:44 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.freebsd.org (Postfix) with ESMTP id 53F6E8FC17 for ; Sun, 30 Mar 2008 07:21:44 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id m2U7Lfkc035844; Sun, 30 Mar 2008 15:21:41 +0800 (KRAST) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.13.8/8.13.8/Submit) id m2U7LbqW035837; Sun, 30 Mar 2008 15:21:37 +0800 (KRAST) (envelope-from eugen) Date: Sun, 30 Mar 2008 15:21:37 +0800 From: Eugene Grosbein To: Brooks Davis Message-ID: <20080330072137.GA35435@svzserv.kemerovo.su> References: <47EE42C8.3070100@quip.cz> <20080329204344.GA66910@lor.one-eyed-alien.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080329204344.GA66910@lor.one-eyed-alien.net> User-Agent: Mutt/1.4.2.3i Cc: FreeBSD-Net mailing list , Miroslav Lachman <000.fbsd@quip.cz> Subject: Re: 7.0 - ifconfig create is not working as expected? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2008 07:21:45 -0000 On Sat, Mar 29, 2008 at 03:43:44PM -0500, Brooks Davis wrote: > > I was using following command in FreeBSD 6.2: > > # ifconfig lo1 create inet 172.16.16.2 netmask 255.255.255.0 > > In FreeBSD 7.0 I got an error: > > # ifconfig lo1 create inet 172.16.16.2 netmask 255.255.255.0 > > ifconfig: inet: bad value > > But it is working splitted in to two commands: > > # ifconfig lo1 create > > # ifconfig lo1 inet 172.16.16.2 netmask 255.255.255.0 > > Is this expected behavior or should I file a PR? > This expected. There's some argument it's wrong, but filing a PR is > unlikely to cause it to change any time soon. Why? The same with creating gif-tunnel, now I need to invoke ifconfig twice, once for 'create' and once for other tunnel parameters, whereas for RELENG_6 this works: 'ifconfig gif0 create tunnel 1.1.1.1 2.2.2.2' This breaks existing setups/scripts. This is POLA issue. Why was it broken? Eugene Grosbein