summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 9656a6e..2b62f03 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -148,8 +148,11 @@ static struct cdevsw bpf_cdevsw = {
.d_kqfilter = bpfkqfilter,
};
-static struct filterops bpfread_filtops =
- { 1, NULL, filt_bpfdetach, filt_bpfread };
+static struct filterops bpfread_filtops = {
+ .f_isfd = 1,
+ .f_detach = filt_bpfdetach,
+ .f_event = filt_bpfread,
+};
/*
* Wrapper functions for various buffering methods. If the set of buffer
OpenPOWER on IntegriCloud