ifnet struct interface type
josh.carroll at psualum.com
Fri Nov 24 23:57:32 UTC 2006
> 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
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.
More information about the freebsd-hackers