summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/ipsecctl.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-07-07 22:00:37 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-07-07 22:00:37 +0000
commit6fb2eddb8f3f64886c1e5af28d9ce141f683c154 (patch)
treef251452209b87dc406d29a528256120d6dfd9f1b /sbin/ipsecctl/ipsecctl.c
parentcc14e57b56cc8938c5a3aad6319c89aaa6593336 (diff)
set flow type (use, require, etc.) when a rule is created. Up to now this was
done while crafting the corresponding pfkey message.
Diffstat (limited to 'sbin/ipsecctl/ipsecctl.c')
-rw-r--r--sbin/ipsecctl/ipsecctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsecctl/ipsecctl.c b/sbin/ipsecctl/ipsecctl.c
index b1a562e7aed..c5466c216c4 100644
--- a/sbin/ipsecctl/ipsecctl.c
+++ b/sbin/ipsecctl/ipsecctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsecctl.c,v 1.15 2005/07/07 21:13:00 hshoexer Exp $ */
+/* $OpenBSD: ipsecctl.c,v 1.16 2005/07/07 22:00:36 hshoexer Exp $ */
/*
* Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -213,7 +213,7 @@ ipsecctl_print_rule(struct ipsec_rule *r, int opts)
printf("\n\tdstid %s", r->auth.dstid);
if (r->auth.type > 0)
printf("\n\t%s", auth[r->auth.type]);
- printf("\n\ttype %s", type[r->type]);
+ printf("\n\ttype %s", type[r->flowtype]);
}
printf("\n");
}