diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-03-31 14:24:16 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-03-31 14:24:16 +0000 |
commit | ab43a5fdde9dcb7a280f417969d25fcf51dcddb8 (patch) | |
tree | 6d3a9321252455e2f1e9a8e1a1890137b4fae8f6 /sbin/ipsecctl | |
parent | cd7aee09c7d785ef93673ef9881fad74a97f8c1b (diff) |
wenn dumping rules always show type, srcid and dstid (if set).
ok reyk@
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r-- | sbin/ipsecctl/ipsecctl.c | 21 |
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"); } |