diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-08-17 20:37:17 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-08-17 20:37:17 +0000 |
commit | 9819e27e37eb3f97de4c58e8adaf223b7947cf26 (patch) | |
tree | 0e20b131670035ac16f784391b287341e273e6a1 /sbin | |
parent | e0ef3d868ea6bcc85aee58b58fa34c8ef4c92117 (diff) |
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 'sbin')
-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"); |