diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-12-16 00:33:00 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-12-16 00:33:00 +0000 |
commit | b4fd2a687cd1acdb5946a41f0568c85f0a34c853 (patch) | |
tree | d0d3da9f94de4ad7b99f573b4b1a30575213e4c5 /sbin/pfctl/pfctl.c | |
parent | 5f2c1d2e7b2047afcfbc873223fc332d3990e793 (diff) |
hostid is stored in network byte order, print in host byte order.
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r-- | sbin/pfctl/pfctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 1a8a0ea17dc..69d074837ef 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.194 2003/12/15 07:11:30 mcbride Exp $ */ +/* $OpenBSD: pfctl.c,v 1.195 2003/12/16 00:32:59 mcbride Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1225,7 +1225,7 @@ pfctl_set_hostid(struct pfctl *pf, u_int32_t hostid) err(1, "DIOCSETHOSTID"); if (pf->opts & PF_OPT_VERBOSE) - printf("set hostid %#08x\n", hostid); + printf("set hostid 0x%08x\n", ntohl(hostid)); return (0); } |