From 9433c2156d8e66e2a1eab435bb1e000f80dbbad8 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sun, 17 Mar 2019 23:57:13 +0000 Subject: extend BIOCSFILDROP so it can be configured to not capture packets. this just provides the macros for the different values for BIOCGFILDROP and BIOCSFILDROP, the implementation behing them is coming. ok sthen@ mikeb@ claudio@ visa@ --- sys/net/bpf.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/net/bpf.h b/sys/net/bpf.h index 604bdcbab55..967d061f898 100644 --- a/sys/net/bpf.h +++ b/sys/net/bpf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.h,v 1.65 2018/02/03 13:37:37 mpi Exp $ */ +/* $OpenBSD: bpf.h,v 1.66 2019/03/17 23:57:12 dlg Exp $ */ /* $NetBSD: bpf.h,v 1.15 1996/12/13 07:57:33 mikel Exp $ */ /* @@ -126,6 +126,13 @@ struct bpf_version { #define BPF_DIRECTION_IN 1 #define BPF_DIRECTION_OUT (1<<1) +/* + * Values for BIOCGFILDROP/BIOCSFILDROP + */ +#define BPF_FILDROP_PASS 0 /* capture, pass */ +#define BPF_FILDROP_CAPTURE 1 /* capture, drop */ +#define BPF_FILDROP_DROP 2 /* no capture, drop */ + struct bpf_timeval { u_int32_t tv_sec; u_int32_t tv_usec; -- cgit v1.2.3