From 5f305d1bf25074a20714b9afeb8e2fc7a0cf1c1b Mon Sep 17 00:00:00 2001 From: "Christian S.J. Peron" Date: Tue, 23 Aug 2005 00:03:58 +0000 Subject: [PATCH] FreeBSD now supports BIOCLOCK. So we can use it now. Reviewed by: mlaier --- contrib/pf/pflogd/pflogd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/contrib/pf/pflogd/pflogd.c b/contrib/pf/pflogd/pflogd.c index 84a9c94ea8bc..6ef6a778df86 100644 --- a/contrib/pf/pflogd/pflogd.c +++ b/contrib/pf/pflogd/pflogd.c @@ -216,15 +216,11 @@ init_pcap(void) cur_snaplen = snaplen = pcap_snapshot(hpcap); -#ifdef __FreeBSD__ - /* We can not lock bpf devices ... yet */ -#else /* lock */ if (ioctl(pcap_fileno(hpcap), BIOCLOCK) < 0) { logmsg(LOG_ERR, "BIOCLOCK: %s", strerror(errno)); return (-1); } -#endif return (0); }