예제 #1
0
pcap_t*
pcap_open_live(const char *a, int b, int c, int d, char *e)
{
    if (!has_wpcap) {
	return NULL;
    }
    return p_pcap_open_live(a, b, c, d, e);
}
예제 #2
0
pcap_t*
pcap_open_live(const char *a, int b, int c, int d, char *e)
{
    if (!has_wpcap) {
	g_snprintf(e, PCAP_ERRBUF_SIZE,
		   "unable to load WinPcap (wpcap.dll); can't open %s to capture",
		   a);
	return NULL;
    }
    return p_pcap_open_live(a, b, c, d, e);
}