diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-11-12 13:14:42 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-11-12 13:14:42 +0000 |
commit | cb3045b566a9cb9b330ffeae630e184e2f821687 (patch) | |
tree | 883b0b359c57d4900685f092073dcf2f66b57151 /sbin/pfctl/pfctl.h | |
parent | bfdcaf3f5ddc90ce782a7280772f7494d819d9ee (diff) |
The ioctl to show states returns a pfsync_state which is in network byte
order and therefore a ntohs is needed to show the rdomain correctly.
OK henning@ dlg@
Diffstat (limited to 'sbin/pfctl/pfctl.h')
-rw-r--r-- | sbin/pfctl/pfctl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.h b/sbin/pfctl/pfctl.h index d18226143ce..ad17fbde8b7 100644 --- a/sbin/pfctl/pfctl.h +++ b/sbin/pfctl/pfctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.h,v 1.45 2010/03/23 13:31:29 henning Exp $ */ +/* $OpenBSD: pfctl.h,v 1.46 2010/11/12 13:14:41 claudio Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -107,7 +107,7 @@ struct pf_altq *pfaltq_lookup(const char *); char *rate2str(double); void print_addr(struct pf_addr_wrap *, sa_family_t, int); -void print_host(struct pf_addr *, u_int16_t p, sa_family_t, int, int); +void print_host(struct pf_addr *, u_int16_t p, sa_family_t, u_int16_t, int); void print_seq(struct pfsync_state_peer *); void print_state(struct pfsync_state *, int); int unmask(struct pf_addr *, sa_family_t); |