[Winpcap-users] Retireving MAC Address

Guy Harris guy at alum.mit.edu
Sat Jan 7 11:25:24 GMT 2006


Guy Harris wrote:

> Adding that would let you ignore interfaces that don't have the type you 
> want.

...at least on platforms where libpcap/WinPcap can determine the 
interface type.

Obviously, it can determine the available DLT_ values for an interface - 
interfaces for which it can't determine a DLT_ value are interfaces it 
can't use and thus wouldn't list - but it might not be able to determine 
the "real" interface type.  On Windows, that'd probably be derived from 
the NdisMedium type - although if 802.11 drivers return NdisMedium802_3, 
it *can't* be reliably derived from the NdisMedium, so WinPcap should 
arguably not supply that information.


More information about the Winpcap-users mailing list