#endif
#ifdef _WIN32
-#include <Packet32.h>
+/*
+ * If we haven't included Packet32.h, define ADAPTER ourselves.
+ */
+#ifndef __PACKET32
+typedef struct _ADAPTER ADAPTER;
+#endif
extern CRITICAL_SECTION g_PcapCompileCriticalSection;
#endif /* _WIN32 */
oid_data_arg->oid = oid;
oid_data_arg->length = len;
memcpy(oid_data_arg->data, data, len);
- if (!PacketRequest(p->adapter, TRUE, data)) {
+ if (!PacketRequest(p->adapter, TRUE, oid_data_arg)) {
pcap_win32_err_to_str(GetLastError(), errbuf);
snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
"Error calling PacketRequest: %s", errbuf);