summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-11-28 13:18:10 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-11-28 13:18:10 +0000
commit56de511572d4e9778b5e4e5951fdce7ae6392593 (patch)
tree71129246c195a693da0ab7e4fc78cc21e7747af2 /sbin
parentbda2d43a3ff02b30ea59fd3c79cada21de6515c1 (diff)
- Remove extra space before -> in print_rdr
- Print hex keys lowercase ok dhartmei@ henning@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl_parser.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 03c16332e64..72a9bd930be 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.113 2002/11/28 12:14:25 mcbride Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.114 2002/11/28 13:18:09 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -456,7 +456,7 @@ print_pool(struct pf_pool *pool, u_int16_t p1, u_int16_t p2,
printf(" random");
break;
case PF_POOL_SRCHASH:
- printf(" source-hash 0x%08X%08X%08X%08X",
+ printf(" source-hash 0x%08x%08x%08x%08x",
pool->key.key32[0], pool->key.key32[1],
pool->key.key32[2], pool->key.key32[3]);
break;
@@ -594,9 +594,10 @@ print_rdr(struct pf_rdr *r)
printf("port %u", ntohs(r->dport));
if (r->opts & PF_DPORT_RANGE)
printf(":%u", ntohs(r->dport2));
+ printf(" ");
}
if (!r->no) {
- printf(" -> ");
+ printf("-> ");
print_pool(&r->rpool, r->rport, r->opts, r->af, PF_POOL_RDR_R);
}
printf("\n");