summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2012-07-10 09:38:23 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2012-07-10 09:38:23 +0000
commit7b63b3750c6af65f1fca9fdfd8c8fc9384d2502e (patch)
tree08a9bfba186e188c396c949e59ae38e160d784cd /sys
parent0756d4d935de5b23e5c194bc3599924bc2adb0e0 (diff)
define a PFSTATE_SCRUBMASK. relying on numeric order of flags is stupid
and bound to break sooner or later.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pfvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index f9b3ec729ef..873f235b0db 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.364 2012/07/07 16:24:32 henning Exp $ */
+/* $OpenBSD: pfvar.h,v 1.365 2012/07/10 09:38:22 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -840,6 +840,7 @@ struct pf_state {
#define PFSTATE_SETTOS 0x0040
#define PFSTATE_RANDOMID 0x0080
#define PFSTATE_SCRUB_TCP 0x0100
+#define PFSTATE_SCRUBMASK (PFSTATE_NODF|PFSTATE_RANDOMID|PFSTATE_SCRUB_TCP)
u_int8_t log;
u_int8_t timeout;
u_int8_t sync_state; /* PFSYNC_S_x */