From owner-freebsd-net@FreeBSD.ORG Mon May 5 12:18:59 2003 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 EC27737B401 for ; Mon, 5 May 2003 12:18:59 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48F5343FD7 for ; Mon, 5 May 2003 12:18:59 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.9/8.12.3) with ESMTP id h45JItTk018917; Mon, 5 May 2003 12:18:55 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.9/8.12.3/Submit) id h45JIs9I018912; Mon, 5 May 2003 12:18:54 -0700 Date: Mon, 5 May 2003 12:18:54 -0700 From: Brooks Davis To: Vincent Jardin Message-ID: <20030505191853.GA25827@Odin.AC.HMC.Edu> References: <200305031547.34668.vjardin@wanadoo.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <200305031547.34668.vjardin@wanadoo.fr> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: net@freebsd.org Subject: Re: Howto rename an interface 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, 05 May 2003 19:19:00 -0000 --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 03, 2003 at 03:47:34PM +0200, Vincent Jardin wrote: > I would like to rename the network interfaces. More particularly, I would= like=20 > to control the numbers in the name and to remove the constraints. >=20 > For example, what are the issues about renaming my 'vr0' interface to eth= 1-3=20 > or DSL-WAN that does not have a ifunit within its name ? >=20 > I think about the following issues, what am I forgetting ? > - update all the sockaddr_dl > - many drivers, in fact all of them, log with %s%d, ifname, ifunit > - (add a message on the routing socket) Many issues are resolved by moving from if_name and if_unit to if_xname in ifnet. I've got a patch for that, but due to lack of time to deal with the issues involved in the ABI change I don't think I'll get it in to 5.x. It doesn't deal with sockaddr_dl or routing sockets, but it does clean up most uses if interface names. I did take a shot at interface renaming, but didn't quite get it right the first try. I was looking at what I did wrong a little while ago and I don't think renaming is all that difficult once you kill off if_name and if_unit. It's on my todo list, but I think it's a 6.x feature at this point. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+trkdXY6L6fI4GtQRAsZiAJ9Zmtjc+JSgN/wFV6CEB241qIOR0QCfeyiL O7RKGPxCdfVj9WYBBEO/ieg= =ufh2 -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--