Look at the PacketSetHwFilter() function. It's in the packetntx\dll\packet32.c file of the winpcap source code distribution.
Loris ----- Original Message ----- From: "George Iannou" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 6:13 PM Subject: [WinPcap-users] PacketRequest does not function to set OID > > Hi, > > I have been trying to use Winpcap 2.3 to do the following > > Set an OID for an ethernet card using PacketRequest. The following is the > code (oidPacket is type PPACKET_OID_DATA) > > oidPacket = malloc(sizeof(PACKET_OID_DATA)+sizeof(ULONG)-1) > ; > ULONG l; > > l = 0x01; > oidPacket->Oid = OID_GEN_CURRENT_PACKET_FILTER; > oidPacket->Length= sizeof(ULONG); > *((PULONG)oidPacket->Data)=l; > > PacketRequest(lpAdapter, TRUE, oidPacket); > > > The REQUEST IS SUCCESSFUL but when I query the OID from another tool - the > OID is still the same old value. > > CAn anyone please suggest an alternative to setting an OID ... > > Thanks a million in advance > > Iannou > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > > ================================================================== > This is the WinPcap users list. It is archived at > http://www.mail-archive.com/[email protected]/ > > To unsubscribe use > mailto: [EMAIL PROTECTED]?body=unsubscribe > ================================================================== > ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[email protected]/ To unsubscribe use mailto: [EMAIL PROTECTED]?body=unsubscribe ==================================================================
