[Winpcap-users] Active ethernet devices +PCAP_OPENFLAG_PROMISCUOUSon 802.11

Fish fish at infidels.org
Wed Jun 4 18:12:58 GMT 2008


 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gianluca Varenni wrote:

> Currently there is no way to know if the an adapter is connected
> or not (i.e. cable connected and link-up in the case of ethernet,
> associated to an  AP in case of wireless) from WinPcap. [...]

Not ENTIRELY true. You can do a IOCTL_NDIS_QUERY_GLOBAL_STATS
DeviceIoControl to the WinPCap device for the
OID_GEN_MEDIA_CONNECT_STATUS object to determine whether a cable is
plugged in or not. If it says there is, then one can logically
presume the adapter is up and running. (otherwise how did the query
succeed?!)

I have a WinPcap product that does exactly that (the above) and I can
state for a fact that it works just fine.

Don't know whether wireless adapters would be any different with
respect to the above, but I'm doubting it.

HTH

- -- 
"Fish" (David B. Trout) - fish(at)infidels.org
Fight Spam! Join CAUCE! <http://www.cauce.org/>
(Any HTML email received will be deleted unread)
PGP key fingerprints:
RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52
DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1

iQA/AwUBSEbbKUj11/TE7j4qEQLUjACglbP4N7u3cJS2QFrOFokCTFAnfnYAn2i+
XlvZ73ukIDyLn8fKLz/2R0o9
=Mpfi
-----END PGP SIGNATURE-----



More information about the Winpcap-users mailing list