summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/ike.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-03-31 14:11:40 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-03-31 14:11:40 +0000
commitcd7aee09c7d785ef93673ef9881fad74a97f8c1b (patch)
treee83901ff076ee4c60a4332c817e7e8775c55c74a /sbin/ipsecctl/ike.c
parentd441e66f862a8a56c7ee1d20fdbf083499797d30 (diff)
allow do delete dynamic rules
ok reyk@
Diffstat (limited to 'sbin/ipsecctl/ike.c')
-rw-r--r--sbin/ipsecctl/ike.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c
index fe82ede8705..2993f4fd754 100644
--- a/sbin/ipsecctl/ike.c
+++ b/sbin/ipsecctl/ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike.c,v 1.22 2006/03/31 14:02:08 markus Exp $ */
+/* $OpenBSD: ike.c,v 1.23 2006/03/31 14:11:39 hshoexer Exp $ */
/*
* Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -356,6 +356,7 @@ ike_delete_config(struct ipsec_rule *r, FILE *fd)
{
switch (r->ikemode) {
case IKE_ACTIVE:
+ case IKE_DYNAMIC:
fprintf(fd, "t IPsec-%s-%s\n", r->src->name, r->dst->name);
break;
case IKE_PASSIVE: