From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 24 23:57:32 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 893CC16A40F for ; Fri, 24 Nov 2006 23:57:32 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BA7443D7E for ; Fri, 24 Nov 2006 23:56:36 +0000 (GMT) (envelope-from josh.carroll@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so1312578nfc for ; Fri, 24 Nov 2006 15:57:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=fHTD5VmS+N6M+i5g0s5WSZVeaviAW1j4yEoulO521CrFQZ54nU8GClMkfpoJWyKJkhK0D5OHPL3AQ5lnfAs3iQDfTylAXY6GHUYi+dtkbk3jGrQxPEOl9dx5VIYFeJyCbfZ0WT84UEh8Z2a8f1R8Q3WDYfKqHBIqH0Mur8KmHMI= Received: by 10.82.126.5 with SMTP id y5mr1660435buc.1164412639694; Fri, 24 Nov 2006 15:57:19 -0800 (PST) Received: by 10.82.163.16 with HTTP; Fri, 24 Nov 2006 15:57:19 -0800 (PST) Message-ID: <8cb6106e0611241557h6b40c6f1laad08ffac29bbb6a@mail.gmail.com> Date: Fri, 24 Nov 2006 15:57:19 -0800 From: "Josh Carroll" Sender: josh.carroll@gmail.com To: m.jakeman@lancaster.ac.uk In-Reply-To: <200611242336.14998.m.jakeman@lancaster.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200611242336.14998.m.jakeman@lancaster.ac.uk> X-Google-Sender-Auth: 441b3f9ec2eddc50 Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: ifnet struct interface type X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2006 23:57:32 -0000 > I was planning on using this value to > distinguish what sort of connection each interface is using but obviously > with both returning IFT_ETHER this is not possible, any help is much > appreciated! It would probably be better to query the interface's media setting instead, since you may have a gigabit card that autonegotiated to 100baseTx-FD or similar. You could probably take a look at /usr/src/sbin/ifconfig/ifmedia.c for details on how to query what the card's current media setting is. Regards, Josh