From owner-freebsd-net@FreeBSD.ORG Fri Nov 24 23:47:54 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF01B16A528 for ; Fri, 24 Nov 2006 23:47:54 +0000 (UTC) (envelope-from m.jakeman@lancaster.ac.uk) Received: from hedwig.lancs.ac.uk (hedwig.lancs.ac.uk [148.88.0.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id D941743DA6 for ; Fri, 24 Nov 2006 23:46:41 +0000 (GMT) (envelope-from m.jakeman@lancaster.ac.uk) Received: from mail01.lancs.ac.uk ([148.88.1.53] helo=marl.lancs.ac.uk) by hedwig.lancs.ac.uk with esmtp (Exim 4.60) (envelope-from ) id 1GnklP-0002MW-JO for freebsd-net@freebsd.org; Fri, 24 Nov 2006 23:47:23 +0000 Received: from ina044000004.lancs.ac.uk ([148.88.224.46]) by marl.lancs.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GnklL-0004Yl-3u; Fri, 24 Nov 2006 23:47:19 +0000 From: m.jakeman@lancaster.ac.uk Organization: Lancaster University To: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Date: Fri, 24 Nov 2006 23:36:14 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611242336.14998.m.jakeman@lancaster.ac.uk> Cc: Subject: ifnet struct interface type X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: m.jakeman@lancaster.ac.uk List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2006 23:47:55 -0000 Hi, I am writing some code that is using the systems ifnet structs via ifnet_byindex(), I have two network interfaces : broadcom BCM6750A1M using the 'bge' driver Intel PRO/wireless 2915ABG using the 'iwi' driver I have written some code to output the ifnet->if_type for each interface and it shows that both have type 6 (IFT_ETHER). My question is why do they both have this type when there are IFT_GIGABITETHERNET and IFT_IEEE80211? 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! Cheers Matt