diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-02 18:31:22 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-02 18:31:22 +0000 |
commit | 7355916064bc8f0d820e4d8adeaa4ad3181d5a8f (patch) | |
tree | ec4e245ea655beb0623ef7c46e92280ab25839ba /lib/libpcap/gencode.h | |
parent | e4dd67e23b287074f915425c4632e4bfbc4ae009 (diff) |
define bpf filters to match address and header fields in IEEE 802.11
wlan frames (DLT_IEEE802_11 and DLT_IEEE802_11_RADIO linktypes). see
tcpdump(8) for details.
"Works for me" claudio@
ok jmc@ deraadt@
Diffstat (limited to 'lib/libpcap/gencode.h')
-rw-r--r-- | lib/libpcap/gencode.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libpcap/gencode.h b/lib/libpcap/gencode.h index 452e55d9a9f..030e99c4e44 100644 --- a/lib/libpcap/gencode.h +++ b/lib/libpcap/gencode.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gencode.h,v 1.13 2006/07/18 11:52:12 dlg Exp $ */ +/* $OpenBSD: gencode.h,v 1.14 2007/01/02 18:31:21 reyk Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996 @@ -20,7 +20,7 @@ * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#) $Header: /cvs/OpenBSD/src/lib/libpcap/gencode.h,v 1.13 2006/07/18 11:52:12 dlg Exp $ (LBL) + * @(#) $Header: /cvs/OpenBSD/src/lib/libpcap/gencode.h,v 1.14 2007/01/02 18:31:21 reyk Exp $ (LBL) */ /* Address qualifiers. */ @@ -67,6 +67,10 @@ #define Q_DST 2 #define Q_OR 3 #define Q_AND 4 +#define Q_ADDR1 5 +#define Q_ADDR2 6 +#define Q_ADDR3 7 +#define Q_ADDR4 8 #define Q_DEFAULT 0 #define Q_UNDEF 255 @@ -184,6 +188,9 @@ struct block *gen_pf_reason(int); struct block *gen_pf_action(int); struct block *gen_pf_dir(int); +struct block *gen_p80211_type(int, int); +struct block *gen_p80211_fcdir(int); + void bpf_optimize(struct block **); __dead void bpf_error(const char *, ...) __attribute__((volatile, __format__ (printf, 1, 2))); |