summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCamiel Dobbelaar <camield@cvs.openbsd.org>2006-03-26 19:15:14 +0000
committerCamiel Dobbelaar <camield@cvs.openbsd.org>2006-03-26 19:15:14 +0000
commitc60e699b1dc1e416a70537f132b0d319ce3228c0 (patch)
tree01e2cdf50e4ca518be52a028f93d5768a0bfbbb4 /lib
parent470a525687199f0250f286ce2e027fe6edc14a82 (diff)
scrub can log, so it is a valid pf action to filter on
ok dhartmei
Diffstat (limited to 'lib')
-rw-r--r--lib/libpcap/grammar.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libpcap/grammar.y b/lib/libpcap/grammar.y
index 2102dd73bef..1cdf27f8b49 100644
--- a/lib/libpcap/grammar.y
+++ b/lib/libpcap/grammar.y
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: grammar.y,v 1.14 2005/10/07 19:32:39 mpf Exp $ */
+/* $OpenBSD: grammar.y,v 1.15 2006/03/26 19:15:13 camield Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
@@ -24,7 +24,7 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/grammar.y,v 1.14 2005/10/07 19:32:39 mpf Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/grammar.y,v 1.15 2006/03/26 19:15:13 camield Exp $ (LBL)";
#endif
#include <sys/types.h>
@@ -309,6 +309,8 @@ action: ID { if (strcasecmp($1, "pass") == 0 ||
$$ = PF_NAT;
else if (strcasecmp($1, "binat") == 0)
$$ = PF_BINAT;
+ else if (strcasecmp($1, "scrub") == 0)
+ $$ = PF_SCRUB;
else
bpf_error("unknown PF action");
}