From owner-freebsd-net@FreeBSD.ORG Wed Sep 28 11:04:20 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0AC916A41F; Wed, 28 Sep 2005 11:04:20 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id E17A743D53; Wed, 28 Sep 2005 11:04:16 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id j8SB4EJD092570; Wed, 28 Sep 2005 15:04:14 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id j8SB4DAr092567; Wed, 28 Sep 2005 15:04:13 +0400 (MSD) (envelope-from yar) Date: Wed, 28 Sep 2005 15:04:13 +0400 From: Yar Tikhiy To: Brooks Davis Message-ID: <20050928110413.GE86457@comp.chem.msu.su> References: <20050922104104.GA13539@comp.chem.msu.su> <20050925213741.GG15981@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050925213741.GG15981@odin.ac.hmc.edu> User-Agent: Mutt/1.5.9i Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org Subject: Re: "ifconfig -vlandev" syntax 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: Wed, 28 Sep 2005 11:04:21 -0000 On Sun, Sep 25, 2005 at 02:37:41PM -0700, Brooks Davis wrote: > On Thu, Sep 22, 2005 at 02:41:05PM +0400, Yar Tikhiy wrote: > > > > As our ifconfig(8) is growing more options for special interface > > types, inconsistencies sneak into their syntax. In particular, > > -vlandev takes a useless argument (vlan(4) cannot attach to more > > than one parent anyway) while, e.g., -carpdev doesn't need one. > > Personally, I like the latter since having to type unneeded words > > on the command line annoys me. Do you think that making -vlandev > > need no arguments in CURRENT would break many existing things? > > I agree the argument is useless. Unfortunatly, it's going to be hard to > deprecate the old syntax so we may need to keep it around. Alas, there doesn't seem to exist an easy way to support both syntaxes in the ifconfig(8) parameter parser. Perhaps we can survive the pain of syntax change in CURRENT only, with a heads-up message sent, release notes updated, etc? I wonder if many people use "ifconfig -vlandev XXX" in automated tools. -- Yar