summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-06-07 04:13:52 +0000
committerbrooks <brooks@FreeBSD.org>2005-06-07 04:13:52 +0000
commitbfb49a193954e666cb8b3fa67e9feb76ce673a6f (patch)
tree3e2ffb8753b317cca2e1156e3434aa6c3b130d0f /sbin/dhclient
parentdf346bd933b8adb2e1033be5781a19388375a7a4 (diff)
downloadFreeBSD-src-bfb49a193954e666cb8b3fa67e9feb76ce673a6f.zip
FreeBSD-src-bfb49a193954e666cb8b3fa67e9feb76ce673a6f.tar.gz
We don't support BPF write filters at this time.
Submitted by: sam
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/bpf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c
index 131a88f..7482c95 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -1,4 +1,5 @@
/* $OpenBSD: bpf.c,v 1.13 2004/05/05 14:28:58 deraadt Exp $ */
+/* $FreeBSD$ */
/* BPF socket interface code, originally contributed by Archie Cobbs. */
@@ -220,6 +221,7 @@ if_register_receive(struct interface_info *info)
if (ioctl(info->rfdesc, BIOCSETF, &p) < 0)
error("Can't install packet filter program: %m");
+#ifdef BIOCSETWF
/* Set up the bpf write filter program structure. */
p.bf_len = dhcp_bpf_wfilter_len;
p.bf_insns = dhcp_bpf_wfilter;
@@ -232,6 +234,7 @@ if_register_receive(struct interface_info *info)
if (ioctl(info->rfdesc, BIOCLOCK, NULL) < 0)
error("Cannot lock bpf");
+#endif
}
ssize_t
OpenPOWER on IntegriCloud