diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2008-06-10 19:32:15 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2008-06-10 19:32:15 +0000 |
commit | c65dbd2c58f0596248a919895ab0f32db25e1bf8 (patch) | |
tree | ca3bcc96380664b91c4010670fc8b0eb7cd9d91a /sbin | |
parent | e9d18a58d8ed7b6e29eab469648cdbef9b9d7470 (diff) |
save somespace in the state by collapsing two 8 bit ints used as booleans
into one 8 bit flags field.
shrinks the state structure by 4 bytes on 32bit archs
ryan ok
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pf_print_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c index 77c81ed5698..f75b621e2f6 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.49 2008/06/10 04:29:21 henning Exp $ */ +/* $OpenBSD: pf_print_state.c,v 1.50 2008/06/10 19:32:14 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -312,7 +312,7 @@ print_state(struct pfsync_state *s, int opts) printf(", anchor %u", s->anchor); if (s->rule != -1) printf(", rule %u", s->rule); - if (s->sloppy) + if (s->state_flags & PFSTATE_SLOPPY) printf(", sloppy"); if (s->sync_flags & PFSYNC_FLAG_SRCNODE) printf(", source-track"); |