summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-05-30 22:20:42 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-05-30 22:20:42 +0000
commitbd47d4f00a2974c730adb0ed1052a3cbdbbc0500 (patch)
tree33c5fe0189ade6b0feb40a9f7ef36232fcada255 /sys/net/if.h
parent9d8b92ac9a688d42e3cbf49fafc55a872bf4223a (diff)
restrict the prio values from SIOCSIFLLPRIO to what the kernel handles
previously the ioctl code checked that prio was an int less than UCHAR_MAX, but the rest of the kernel (and priq code in particular) expects it to be between 0 and 7 inclusive. ok krw@ tb@
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index d91ad1f5b9a..33f355dd161 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.193 2018/04/25 16:05:58 jca Exp $ */
+/* $OpenBSD: if.h,v 1.194 2018/05/30 22:20:41 dlg Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -126,6 +126,7 @@ struct if_data {
};
#define IFQ_NQUEUES 8
+#define IFQ_MINPRIO 0
#define IFQ_MAXPRIO IFQ_NQUEUES - 1
#define IFQ_DEFPRIO 3