 +        FD_ZERO(&setl);
 +        status = pcap_dispatch((pcap_t*)pcaphandle, 1, &eth_callback, NULL);
 +    }
-+}
-+
-+void eth_callback(u_char *user, struct pcap_pkthdr *phdr, u_char *pdata)
++    return NULL;
++}
++
++void eth_callback(u_char *user, const struct pcap_pkthdr *phdr, const u_char *pdata)
 +{
 +    if(phdr->len<1501)
 +    {

 #if !defined(_WIN32)
 
 typedef struct TAPState {
@@ -4733,6 +5044,14 @@
         ret = net_slirp_init(vlan);
     } else
 #endif

     QEMU_OPTION_m,
     QEMU_OPTION_nographic,
     QEMU_OPTION_portrait,
@@ -7746,9 +8068,6 @@
     { "pflash", HAS_ARG, QEMU_OPTION_pflash },
     { "boot", HAS_ARG, QEMU_OPTION_boot },
     { "snapshot", 0, QEMU_OPTION_snapshot },
