From owner-freebsd-net@FreeBSD.ORG Sun May 23 20:41:56 2004 Return-Path: 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 61A0716A4CE for ; Sun, 23 May 2004 20:41:56 -0700 (PDT) Received: from relay.rinet.ru (relay.rinet.ru [195.54.192.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDB5943D2F for ; Sun, 23 May 2004 20:41:54 -0700 (PDT) (envelope-from flist@qqmore.rinet.ru) Received: from relay.rinet.ru (localhost [127.0.0.1]) by relay.rinet.ru (8.12.9p2/8.12.9) with ESMTP id i4O3fjYL024729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 May 2004 07:41:45 +0400 (MSD) (envelope-from flist@qqmore.rinet.ru) Received: (from uucp@localhost)i4O3fjmu024728; Mon, 24 May 2004 07:41:45 +0400 (MSD) (envelope-from flist@qqmore.rinet.ru) Received: from qqmore.rinet.ru. (localhost.rinet.ru [127.0.0.1]) by qqmore.rinet.ru. (8.12.11/8.12.11) with ESMTP id i4O3fToi003936; Mon, 24 May 2004 07:41:29 +0400 (MSD) (envelope-from flist@qqmore.rinet.ru) Received: (from flist@localhost) by qqmore.rinet.ru. (8.12.11/8.12.11/Submit) id i4O3en2E003935; Mon, 24 May 2004 07:40:49 +0400 (MSD) (envelope-from flist) Date: Mon, 24 May 2004 07:40:49 +0400 From: Alex Semenyaka To: "Louis A. Mamakos" Message-ID: <20040524034049.GA1022@qqmore.rinet.ru> Mail-Followup-To: Alex Semenyaka , "Louis A. Mamakos" , Brooks Davis , freebsd-net@freebsd.org, Peter Pentchev References: <20040520162919.GA1971@straylight.m.ringlet.net> <20040520171833.GA22494@Odin.AC.HMC.Edu> <20040521133530.GA1403@qqmore.rinet.ru> <20040523233737.219F720FC5@whizzo.transsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040523233737.219F720FC5@whizzo.transsys.com> User-Agent: Mutt/1.5.6i cc: freebsd-net@freebsd.org cc: Peter Pentchev cc: Alex Semenyaka Subject: Re: [RFC] ifconfig: match by link-level address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 03:41:56 -0000 On Sun, May 23, 2004 at 07:37:37PM -0400, Louis A. Mamakos wrote: > >>> This could be the first step towards teaching rc.conf about something like > >>> network_interfaces_rename="hw-00:03:0d:08:dc:a7 sis0int" > >> I don't really like the idea of adding magic values to the interface > >> namespace that only work with ifconfig. If you want ifconfig to match >> I agree, but there is another option: make such things not ifconfig-specific. >> I mean that it could be done though renaming the interface into the some >> lladdr-dependent name with fixed format. For example, > This is all pretty interesting, though it seems like you'd only > need to cobble together a shell script to do what you're after. You've absolutely right and I wanted to propose it just on the base of currently existing functionality (independently of this thread). However if there will be automatic renaming things would be easier. Thus I decided to combine both approaches since it leads to simple solution. I would post my current changes (those giving the discussing functionality) to the startup scripts as PR and send here the number. I'll do it if anybody will express any interest in that. Actually those scripts could be changed in future if ``ifconfig'' will provide such possibility out-of-box, and changes will be seamless for users. -- Sincerely, Alex Semenyaka