diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2004-06-22 04:04:20 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2004-06-22 04:04:20 +0000 |
commit | d66f33dc7ea9a623159771237b2971077996e0b9 (patch) | |
tree | 78e0b778b08ad8aef085db390430e71896943550 /sys/net/bpfdesc.h | |
parent | 07f9a9d13ea0b7f12cf124c7c25c9b01c96c9369 (diff) |
Add a new "filter drop" flag to bpf and related ioclts.
When enabled, it notifies the calling interface that the packet
matches a bpf filter and should be dropped.
ok henning@ markus@ frantzen@
Diffstat (limited to 'sys/net/bpfdesc.h')
-rw-r--r-- | sys/net/bpfdesc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h index 4087eb2685d..715cca0ee03 100644 --- a/sys/net/bpfdesc.h +++ b/sys/net/bpfdesc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bpfdesc.h,v 1.13 2004/05/28 08:16:23 grange Exp $ */ +/* $OpenBSD: bpfdesc.h,v 1.14 2004/06/22 04:04:19 canacar Exp $ */ /* $NetBSD: bpfdesc.h,v 1.11 1995/09/27 18:30:42 thorpej Exp $ */ /* @@ -76,6 +76,7 @@ struct bpf_d { u_char bd_state; /* idle, waiting, or timed out */ u_char bd_immediate; /* true to return on packet arrival */ u_char bd_locked; /* true if descriptor is locked */ + u_char bd_fildrop; /* true if filtered packets will be dropped */ int bd_hdrcmplt; /* false to fill in src lladdr automatically */ int bd_async; /* non-zero if packet reception should generate signal */ int bd_sig; /* signal to send upon packet reception */ |