From owner-freebsd-net Sat Jul 27 18:24:35 2002 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 8C9F937B400 for ; Sat, 27 Jul 2002 18:24:33 -0700 (PDT) Received: from tomts24-srv.bellnexxia.net (tomts24.bellnexxia.net [209.226.175.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EB6443E3B for ; Sat, 27 Jul 2002 18:24:32 -0700 (PDT) (envelope-from matt@xena.gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([65.95.176.16]) by tomts24-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020728012443.HNQC2648.tomts24-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sat, 27 Jul 2002 21:24:43 -0400 Received: from localhost (matt@localhost) by xena.gsicomp.on.ca (8.11.3/8.11.3) with ESMTP id g6S0AfI16056; Sat, 27 Jul 2002 20:10:41 -0400 (EDT) (envelope-from matt@xena.gsicomp.on.ca) Date: Sat, 27 Jul 2002 20:10:40 -0400 (EDT) From: Matthew Emmerton To: Garrett Wollman Cc: "George V. Neville-Neil" , net@FreeBSD.ORG Subject: Re: switching to if_xname from if_name and if_unit In-Reply-To: <200207271743.g6RHhRoo085585@khavrinen.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 27 Jul 2002, Garrett Wollman wrote: > < said: > > > I've always wondered why interfaces have names at all. They should be > > identified > > by port IMHO, and the name is just something you query on the port. > > Then the names could be meaningful strings. > > What do you mean ``identified by port''? A name is still a name even > if you call it a ``port''. I suppose by 'port' he means something like Linux's 'netx' method of naming devices exposing an ethernet interface. So you could do something like this to determine details of the actual card: # ifconfig net0 query-if-info Device 'net0' uses driver 'rl (RealTek 8029/8039)' PCI bus, slot 3, device 0 PCI vendor ID 0x1234 device ID 0x5678 subdevice ID 0x0001 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message