summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2007-07-03 11:32:27 +0000
committermarkus <markus@openbsd.org>2007-07-03 11:32:27 +0000
commitc7516b7f2960344495d882bf85cfe4d2a0b59d30 (patch)
tree2dc30f88f9adf1020831e9d6129bf083af06075e
parentfix a memory leak that was introduced in r1.20 on 2007-06-24T05Z; ok dlg (diff)
downloadwireguard-openbsd-c7516b7f2960344495d882bf85cfe4d2a0b59d30.tar.xz
wireguard-openbsd-c7516b7f2960344495d882bf85cfe4d2a0b59d30.zip
allow proto esp/ah in flow specification (especially useful for bypass flows)
ok hshoexer, mpf
-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; }