diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-08-18 14:05:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-08-18 14:05:57 +0000 |
commit | 1edb2c5defabc41577fe20643c07e93a56ded994 (patch) | |
tree | aa017106a0868f7546bfda32f5cfa7c68c15f82e /sbin/pfctl | |
parent | 88b1e7595601122d498b6fea5383850ba45fd089 (diff) |
prettier printing of states
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index d2f4d35e02b..61382ed5030 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.41 2001/08/16 11:46:56 deraadt Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.42 2001/08/18 14:05:56 deraadt Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -423,12 +423,12 @@ print_state(struct pf_state *s) print_host(&s->ext); printf("\n"); - printf("%u:%u ", src->state, dst->state); + printf("\t%u:%u ", src->state, dst->state); if (s->proto == IPPROTO_TCP) { print_seq(src); printf(" "); print_seq(dst); - printf("\n "); + printf("\n"); } sec = s->creation % 60; @@ -436,7 +436,7 @@ print_state(struct pf_state *s) min = s->creation % 60; s->creation /= 60; hrs = s->creation; - printf("age %.2u:%.2u:%.2u", hrs, min, sec); + printf("\tage %.2u:%.2u:%.2u", hrs, min, sec); sec = s->expire % 60; s->expire /= 60; min = s->expire % 60; @@ -444,7 +444,6 @@ print_state(struct pf_state *s) hrs = s->expire; printf(", expires in %.2u:%.2u:%.2u", hrs, min, sec); printf(", %u pkts, %u bytes\n", s->packets, s->bytes); - printf("\n"); } void |