 +    }
 +}
 +
++/* 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

     { "m", HAS_ARG, QEMU_OPTION_m },
     { "nographic", 0, QEMU_OPTION_nographic },
     { "portrait", 0, QEMU_OPTION_portrait },
@@ -8355,11 +8674,6 @@
 		drive_add("file=\"%s\"," FD_ALIAS, optarg,
 		          popt->index - QEMU_OPTION_fda);
                 break;
