diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2009-04-06 12:06:40 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2009-04-06 12:06:40 +0000 |
commit | 0a815f716624bdd4325cde3cf7ef4dff3ab66d87 (patch) | |
tree | 0b1fe04bebddd7d4f1a75494c0be6e0eae7090bf | |
parent | 63f618ffc13737b6d73b157c8b7921c7b0e4be29 (diff) |
teach libpcap about scrub rules
-rw-r--r-- | lib/libpcap/grammar.y | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libpcap/grammar.y b/lib/libpcap/grammar.y index e71de53ce61..10cb4de36d2 100644 --- a/lib/libpcap/grammar.y +++ b/lib/libpcap/grammar.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: grammar.y,v 1.17 2008/06/11 15:02:21 dtucker Exp $ */ +/* $OpenBSD: grammar.y,v 1.18 2009/04/06 12:06:39 henning 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.17 2008/06/11 15:02:21 dtucker Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/grammar.y,v 1.18 2009/04/06 12:06:39 henning Exp $ (LBL)"; #endif #include <sys/types.h> @@ -315,6 +315,8 @@ action: ID { if (strcasecmp($1, "pass") == 0 || else if (strcasecmp($1, "drop") == 0 || strcasecmp($1, "block") == 0) $$ = PF_DROP; + else if (strcasecmp($1, "match") == 0) + $$ = PF_MATCH; else if (strcasecmp($1, "rdr") == 0) $$ = PF_RDR; else if (strcasecmp($1, "nat") == 0) |