summaryrefslogtreecommitdiff
path: root/sys/net/pfvar.h
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2015-02-15 10:40:54 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2015-02-15 10:40:54 +0000
commitf1369703233167f12590533c6185a1912c3a28b6 (patch)
tree369259e6704450266c86b8683491201375b58fa8 /sys/net/pfvar.h
parentfa91586a7bd90ba5937de3af582bd2e7bd9ea483 (diff)
Rather than using 0xff as a placeholder for "don't check prio", use 0xff to
mean "prio is 0". This avoids the need for code changes in programs which add pf rules (as was done in pfctl but not other programs) to handle the new "check prio" functionality. Specifically this unbreaks ftp-proxy. Use of #define rather than magic 0xff suggested by benno. ok benno "if henning doesnt like it he can change it when he recovers from jet-lag" (this file missed from previous commit, noticed by daniel@)
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r--sys/net/pfvar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 92806086987..a0423b190e6 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.412 2015/02/12 01:24:10 henning Exp $ */
+/* $OpenBSD: pfvar.h,v 1.413 2015/02/15 10:40:53 sthen Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1434,6 +1434,8 @@ struct pf_status {
#define PF_REASS_ENABLED 0x01
#define PF_REASS_NODF 0x02
+#define PF_PRIO_ZERO 0xff /* match "prio 0" packets */
+
struct pf_queue_bwspec {
u_int absolute;
u_int percent;