Searched refs:hpcap (Results 1 – 2 of 2) sorted by relevance
/freebsd/contrib/pf/pflogd/ |
H A D | pflogd.c | 59 pcap_t *hpcap; variable 214 if (pcap_compile(hpcap, &bprog, filter, PCAP_OPT_FIL, 0) < 0) in set_pcap_filter() 215 logmsg(LOG_WARNING, "%s", pcap_geterr(hpcap)); in set_pcap_filter() 217 if (pcap_setfilter(hpcap, &bprog) < 0) in set_pcap_filter() 218 logmsg(LOG_WARNING, "%s", pcap_geterr(hpcap)); in set_pcap_filter() 271 hpcap = pcap_open_live(interface, snaplen, 1, PCAP_TO_MS, errbuf); in init_pcap() 272 if (hpcap == NULL) { in init_pcap() 277 if (pcap_datalink(hpcap) != DLT_PFLOG) { in init_pcap() 279 pcap_close(hpcap); in init_pcap() 280 hpcap = NULL; in init_pcap() [all …]
|
H A D | privsep.c | 63 extern pcap_t *hpcap; 183 if (hpcap == NULL) in set_snaplen() 186 hpcap->snapshot = snap; in set_snaplen() 254 hpcap->snapshot = snaplen; in priv_set_snaplen()
|