ifnet struct interface type
Josh Carroll
josh.carroll at psualum.com
Fri Nov 24 15:57:32 PST 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
> 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
More information about the freebsd-net
mailing list