From owner-freebsd-stable@FreeBSD.ORG Mon Oct 29 23:55:26 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5ECF16A41B for ; Mon, 29 Oct 2007 23:55:26 +0000 (UTC) (envelope-from miguel@anjos.strangled.net) Received: from mailrly06.isp.novis.pt (mailrly06.isp.novis.pt [195.23.133.216]) by mx1.freebsd.org (Postfix) with ESMTP id 226A613C4B7 for ; Mon, 29 Oct 2007 23:55:25 +0000 (UTC) (envelope-from miguel@anjos.strangled.net) Received: (qmail 24437 invoked from network); 29 Oct 2007 23:48:31 -0000 Received: from unknown (HELO mailfrt01.isp.novis.pt) ([195.23.133.193]) (envelope-sender ) by mailrly06.isp.novis.pt with compressed SMTP; 29 Oct 2007 23:48:31 -0000 Received: (qmail 27006 invoked from network); 29 Oct 2007 23:48:31 -0000 Received: from unknown (HELO satan.anjos.strangled.net) ([89.180.101.156]) (envelope-sender ) by mailfrt01.isp.novis.pt with SMTP; 29 Oct 2007 23:48:31 -0000 Received: from satan.anjos.strangled.net (localhost [127.0.0.1]) by satan.anjos.strangled.net (8.14.1/8.14.1) with ESMTP id l9TNmKFN006125; Mon, 29 Oct 2007 23:48:20 GMT (envelope-from miguel@satan.anjos.strangled.net) Received: (from miguel@localhost) by satan.anjos.strangled.net (8.14.1/8.14.1/Submit) id l9TNmJ4w006124; Mon, 29 Oct 2007 23:48:19 GMT (envelope-from miguel) Date: Mon, 29 Oct 2007 23:48:19 GMT From: Miguel Lopes Santos Ramos Message-Id: <200710292348.l9TNmJ4w006124@satan.anjos.strangled.net> To: dyeske@gmail.com, freebsd-stable@freebsd.org In-Reply-To: <85bdae4e0710171603p4a269efbi62710d55e37b733d@mail.gmail.com> Cc: Subject: Re: interface speed support X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 23:55:26 -0000 > From: "David Yeske" > > Is there a way to determine the supported interface speed of a > particular driver? If I have a gigabit ethernet device connected to a > 100baseTX switch, how can I determine the interface supports gigabit > ethernet? I have tried parsing the following. Is there a cleaner way > to do this? > > sysctl -A | grep phy | grep desc I think using that line you're only checking what kind of phy device you have. If it is connected to a 100baseTX switch, it must be using 100baseTX. For controlling and querying the media type that you're actually using, you can use ifconfig media parameter. The actual value that this parameter accepts are device dependent but in practice quite standard like 100baseTX or 1000baseTX. say, ifconfig | grep media: Greetings, Miguel