Date: Fri, 24 Nov 2006 15:57:19 -0800 From: "Josh Carroll" <josh.carroll@psualum.com> To: m.jakeman@lancaster.ac.uk Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: ifnet struct interface type Message-ID: <8cb6106e0611241557h6b40c6f1laad08ffac29bbb6a@mail.gmail.com> In-Reply-To: <200611242336.14998.m.jakeman@lancaster.ac.uk> References: <200611242336.14998.m.jakeman@lancaster.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb6106e0611241557h6b40c6f1laad08ffac29bbb6a>