 +    }
 +}
 +
++/* bad winpcap api only sets these when remote-pcap is enabled. */
++#define PCAP_OPENFLAG_PROMISCUOUS 1
++#define PCAP_OPENFLAG_NOCAPTURE_LOCAL 8
 +#define PCAP_READ_TIMEOUT 15
 +
 +int eth_open(char* name)

 #ifdef _WIN32
     if (!strcmp(device, "tap")) {
         char ifname[64];
@@ -7551,6 +7870,9 @@
            "                connect the user mode network stack to VLAN 'n' and send\n"
            "                hostname 'host' to DHCP clients\n"
 #endif

+static void pcap_receive(void *opaque, const uint8_t *buf, int size);
+char* eth_getname_bydesc(char* desc, char* name);
+char* eth_getname(int number, char* name);
+void eth_callback(u_char *user, const struct pcap_pkthdr *phdr, const u_char *pdata);
+void *pcap_send(void *threadid);
+int eth_open(char* name);
+
