#endif
static const char *(*p_pcap_lib_version) (void);
static int (*p_pcap_setbuff) (pcap_t *, int dim);
-static int (*p_pcap_next_ex) (pcap_t *, struct pcap_pkthdr **pkt_header, u_char **pkt_data);
+static int (*p_pcap_next_ex) (pcap_t *, struct pcap_pkthdr **pkt_header, const u_char **pkt_data);
typedef struct {
const char *name;
return p_pcap_setbuff(a, b);
}
-/* next_ex is win32 specific! */
-int pcap_next_ex (pcap_t *a, struct pcap_pkthdr **b, u_char **c)
+/* pcap_next_ex is available since libpcap 0.8 / WinPcap 3.0! */
+/* (if you get a declaration warning here, try to update to at least WinPcap 3.1b4 develpack) */
+int pcap_next_ex (pcap_t *a, struct pcap_pkthdr **b, const u_char **c)
{
g_assert(has_wpcap);
return p_pcap_next_ex(a, b, c);
* PacketGetAdapterNames. According to the documentation
* I could find:
*
- * http://winpcap.polito.it/docs/man/html/Packet32_8c.html#a43
+ * http://www.winpcap.org/docs/man/html/Packet32_8c.html#a43
*
* this means that:
*
strstr(err_str, "The operation completed successfully") != NULL) {
return g_strdup_printf("Can't get list of interfaces: %s\n"
"This might be a problem with WinPcap 3.0; you should try updating to\n"
-"a later version of WinPcap - see the WinPcap site at winpcap.polito.it",
+"a later version of WinPcap - see the WinPcap site at www.winpcap.org",
err_str);
}
return g_strdup_printf("Can't get list of interfaces: %s", err_str);