[Winpcap-users] how to detect an idle adapter?

Helmut Vaupotitsch hv at itec-audio.com
Thu Aug 28 04:35:57 UTC 2014


You can use a PacketRequest OID_GEN_MEDIA_CONNECT_STATUS to detect if a cable is connected.
If a connection is established, then you can call PacketGetNetType to detect the LinkSpeed.

regards
Helmut

Am 26.07.2014 05:38, schrieb Jiyang Hu:
> I have two adapters, one is connected to network and the other is idled (adapter itself enabled but no RJ45 cable connected). How can I detect this idle one? Calling 
> pcap_sendpacket() returns successfully even for this idle adapter - this looks like a bug for me. This idle adapter has kept IP address from its last use when connected 
> to network so I can't check if its IP address equals to null to determine. Any hints? Thanks!
>
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winpcap.org/pipermail/winpcap-users/attachments/20140828/4837be21/attachment.html>


More information about the Winpcap-users mailing list