diff options
author | 2012-08-17 20:37:16 +0000 | |
---|---|---|
committer | 2012-08-17 20:37:16 +0000 | |
commit | 562d49062e2d1f48bce433ed0e82801af776bb95 (patch) | |
tree | 0cca02abaacdac2a9a16ef14c2595fe50160fe90 /sbin/pfctl/pf_print_state.c | |
parent | cleanup mpii_get_ioc_pg8 mess, no functional change (diff) | |
download | wireguard-openbsd-562d49062e2d1f48bce433ed0e82801af776bb95.tar.xz wireguard-openbsd-562d49062e2d1f48bce433ed0e82801af776bb95.zip |
Don't forget to byteswap the state_flags since it's a uint16_t now.
From Hrvoje Popovski via Florian Obser, ok henning
Diffstat (limited to '')
-rw-r--r-- | sbin/pfctl/pf_print_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c index 6a6c5378c8a..0c00e9e3ebd 100644 --- a/sbin/pfctl/pf_print_state.c +++ b/sbin/pfctl/pf_print_state.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_print_state.c,v 1.62 2012/07/08 17:48:37 lteo Exp $ */ +/* $OpenBSD: pf_print_state.c,v 1.63 2012/08/17 20:37:16 mikeb Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -343,9 +343,9 @@ print_state(struct pfsync_state *s, int opts) printf(", anchor %u", ntohl(s->anchor)); if (ntohl(s->rule) != -1) printf(", rule %u", ntohl(s->rule)); - if (s->state_flags & PFSTATE_SLOPPY) + if (ntohs(s->state_flags) & PFSTATE_SLOPPY) printf(", sloppy"); - if (s->state_flags & PFSTATE_PFLOW) + if (ntohs(s->state_flags) & PFSTATE_PFLOW) printf(", pflow"); if (s->sync_flags & PFSYNC_FLAG_SRCNODE) printf(", source-track"); |