summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/parse.y
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2007-07-03 11:32:28 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2007-07-03 11:32:28 +0000
commitbb7ff6c29b8b5e8dd03d358c6d636f894cf0cf93 (patch)
treeb0d8ef71a5bbc33080b655891f1e821871befa78 /sbin/ipsecctl/parse.y
parent0a59d0edad8c76adc08c3b5257694ed2cf27e899 (diff)
allow proto esp/ah in flow specification (especially useful for bypass flows)
ok hshoexer, mpf
Diffstat (limited to 'sbin/ipsecctl/parse.y')
-rw-r--r--sbin/ipsecctl/parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index 48344759d39..1100d8dfb7f 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.123 2007/05/10 06:10:04 hshoexer Exp $ */
+/* $OpenBSD: parse.y,v 1.124 2007/07/03 11:32:27 markus Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -372,6 +372,8 @@ proto : /* empty */ { $$ = 0; }
}
}
+ | PROTO ESP { $$ = IPPROTO_ESP; }
+ | PROTO AH { $$ = IPPROTO_AH; }
;
tmode : /* empty */ { $$ = IPSEC_TUNNEL; }