summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/ipsecctl.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-03-31 14:24:16 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-03-31 14:24:16 +0000
commitab43a5fdde9dcb7a280f417969d25fcf51dcddb8 (patch)
tree6d3a9321252455e2f1e9a8e1a1890137b4fae8f6 /sbin/ipsecctl/ipsecctl.c
parentcd7aee09c7d785ef93673ef9881fad74a97f8c1b (diff)
wenn dumping rules always show type, srcid and dstid (if set).
ok reyk@
Diffstat (limited to 'sbin/ipsecctl/ipsecctl.c')
-rw-r--r--sbin/ipsecctl/ipsecctl.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/sbin/ipsecctl/ipsecctl.c b/sbin/ipsecctl/ipsecctl.c
index e1abb15608a..d1bca5e25c4 100644
--- a/sbin/ipsecctl/ipsecctl.c
+++ b/sbin/ipsecctl/ipsecctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsecctl.c,v 1.45 2006/03/31 13:13:51 markus Exp $ */
+/* $OpenBSD: ipsecctl.c,v 1.46 2006/03/31 14:24:15 hshoexer Exp $ */
/*
* Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -278,18 +278,15 @@ ipsecctl_print_flow(struct ipsec_rule *r, int opts)
printf(" peer ");
ipsecctl_print_addr(r->peer);
}
-
- if (opts & IPSECCTL_OPT_VERBOSE) {
- if (r->auth) {
- if (r->auth->srcid)
- printf("\n\tsrcid %s", r->auth->srcid);
- if (r->auth->dstid)
- printf("\n\tdstid %s", r->auth->dstid);
- if (r->auth->type > 0)
- printf("\n\t%s", auth[r->auth->type]);
- }
- printf("\n\ttype %s", flowtype[r->flowtype]);
+ if (r->auth) {
+ if (r->auth->srcid)
+ printf(" srcid %s", r->auth->srcid);
+ if (r->auth->dstid)
+ printf(" dstid %s", r->auth->dstid);
+ if (r->auth->type > 0)
+ printf(" %s", auth[r->auth->type]);
}
+ printf(" type %s", flowtype[r->flowtype]);
printf("\n");
}