diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2008-07-07 09:25:49 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2008-07-07 09:25:49 +0000 |
commit | ea74539fbc8e15c5f08d274a44fab9597bd721a8 (patch) | |
tree | 6d102cc7476e793a6fcd823731a33ab5a474ad3d /sys/net/bpf.h | |
parent | ea1979e3d2b54ba0ce259e583ff88846d8108407 (diff) | |
download | FreeBSD-src-ea74539fbc8e15c5f08d274a44fab9597bd721a8.zip FreeBSD-src-ea74539fbc8e15c5f08d274a44fab9597bd721a8.tar.gz |
Add a new ioctl for changing the read filter (BIOCSETFNR). This is
just like BIOCSETF but it doesn't drop all the packets buffered on
the discriptor and reset the statistics.
Also, when setting the write filter, don't drop packets waiting to
be read or reset the statistics.
PR: 118486
Submitted by: Matthew Luckie <mluckie@cs.waikato.ac.nz>
MFC after: 1 month
Diffstat (limited to 'sys/net/bpf.h')
-rw-r--r-- | sys/net/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h index 1d6f9db..3d3d079 100644 --- a/sys/net/bpf.h +++ b/sys/net/bpf.h @@ -142,6 +142,7 @@ struct bpf_zbuf { #define BIOCGETZMAX _IOR('B',127, size_t) #define BIOCROTZBUF _IOR('B',128, struct bpf_zbuf) #define BIOCSETZBUF _IOW('B',129, struct bpf_zbuf) +#define BIOCSETFNR _IOW('B',130, struct bpf_program) /* Obsolete */ #define BIOCGSEESENT BIOCGDIRECTION |