diff options
author | 2005-05-26 17:58:25 +0000 | |
---|---|---|
committer | 2005-05-26 17:58:25 +0000 | |
commit | 523f766ee325dcd6cd898be913f698aa83c5c318 (patch) | |
tree | f5c26f9473a193776e2931c90973dd480a18a5f6 /lib | |
parent | iommu meets amd64. This currently only works on machines where the GART (diff) | |
download | wireguard-openbsd-523f766ee325dcd6cd898be913f698aa83c5c318.tar.xz wireguard-openbsd-523f766ee325dcd6cd898be913f698aa83c5c318.zip |
rdr, nat and binat can appear in pflog now, so make them valid arguments
for the "action" keyword
ok dhartmei
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpcap/grammar.y | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libpcap/grammar.y b/lib/libpcap/grammar.y index 24aee92b971..4b21141e475 100644 --- a/lib/libpcap/grammar.y +++ b/lib/libpcap/grammar.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: grammar.y,v 1.12 2003/07/18 23:05:13 david Exp $ */ +/* $OpenBSD: grammar.y,v 1.13 2005/05/26 17:58:25 camield Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996 @@ -24,7 +24,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/lib/libpcap/grammar.y,v 1.12 2003/07/18 23:05:13 david Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/lib/libpcap/grammar.y,v 1.13 2005/05/26 17:58:25 camield Exp $ (LBL)"; #endif #include <sys/types.h> @@ -302,6 +302,12 @@ action: ID { if (strcasecmp($1, "pass") == 0 || else if (strcasecmp($1, "drop") == 0 || strcasecmp($1, "block") == 0) $$ = PF_DROP; + else if (strcasecmp($1, "rdr") == 0) + $$ = PF_RDR; + else if (strcasecmp($1, "nat") == 0) + $$ = PF_NAT; + else if (strcasecmp($1, "binat") == 0) + $$ = PF_BINAT; else bpf_error("unknown PF action"); } |