winpcap-users  

Re: [WinPcap-users] Is cable plugged in?

Ben Greear
Thu, 28 Apr 2005 16:46:42 -0700

Ben Greear wrote:
 > You can probably use PacketRequest with the OID_GEN_MEDIA_CONNECT_STATUS
 > OID.

 > Loris


I am trying to do something similar, and I can't get anything other than zeros returned in the OID. My code is below. The MAC request works, but the link status request does not.

Errr, actually, I had a bug elsewhere that was screwing things up. (I was trying to get link status from the IfMibRow call.)

This logic does actually work.

THanks,
Ben

--
Ben Greear <[EMAIL PROTECTED]>
Candela Technologies Inc  http://www.candelatech.com



==================================================================
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/winpcap-users@winpcap.polito.it/

To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================