diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2007-07-03 11:32:28 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2007-07-03 11:32:28 +0000 |
commit | bb7ff6c29b8b5e8dd03d358c6d636f894cf0cf93 (patch) | |
tree | b0d8ef71a5bbc33080b655891f1e821871befa78 /sbin/ipsecctl/parse.y | |
parent | 0a59d0edad8c76adc08c3b5257694ed2cf27e899 (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.y | 4 |
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; } |