aboutsummaryrefslogtreecommitdiff
path: root/sbin/dhclient/bpf.c
diff options
context:
space:
mode:
authorChristian S.J. Peron <csjp@FreeBSD.org>2005-08-23 01:35:38 +0000
committerChristian S.J. Peron <csjp@FreeBSD.org>2005-08-23 01:35:38 +0000
commit4d3d08301e8efc43b8d96160de9383e44efcb234 (patch)
tree9f61d15a780a817bb3684761746fa7d97f1edead /sbin/dhclient/bpf.c
parentdb37c09a491d78a7129a2480b48f08970056b57c (diff)
downloadsrc-4d3d08301e8efc43b8d96160de9383e44efcb234.tar.gz
src-4d3d08301e8efc43b8d96160de9383e44efcb234.zip
FreeBSD unconditionally supports write filters now.
Notes
Notes: svn path=/head/; revision=149383
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r--sbin/dhclient/bpf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c
index 911acb49407f..60a9d74b673b 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -221,7 +221,6 @@ 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;
@@ -234,7 +233,6 @@ if_register_receive(struct interface_info *info)
if (ioctl(info->rfdesc, BIOCLOCK, NULL) < 0)
error("Cannot lock bpf");
-#endif
}
ssize_t