Module Name: src
Committed By: ozaki-r
Date: Thu Sep 26 02:39:09 UTC 2024
Modified Files:
src/sys/altq: altq_cbq.c
Log Message:
altq, cbq: fix default class assignment
Fix typo in v1.34.
Tested by me and manu@.
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/altq/altq_cbq.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/altq/altq_cbq.c
diff -u src/sys/altq/altq_cbq.c:1.40 src/sys/altq/altq_cbq.c:1.41
--- src/sys/altq/altq_cbq.c:1.40 Thu Sep 26 02:37:46 2024
+++ src/sys/altq/altq_cbq.c Thu Sep 26 02:39:09 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: altq_cbq.c,v 1.40 2024/09/26 02:37:46 ozaki-r Exp $ */
+/* $NetBSD: altq_cbq.c,v 1.41 2024/09/26 02:39:09 ozaki-r Exp $ */
/* $KAME: altq_cbq.c,v 1.21 2005/04/13 03:44:24 suz Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: altq_cbq.c,v 1.40 2024/09/26 02:37:46 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: altq_cbq.c,v 1.41 2024/09/26 02:39:09 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_altq.h"
@@ -750,7 +750,7 @@ cbq_class_create(cbq_state_t *cbqp, stru
/* save the allocated class */
cbqp->cbq_class_tbl[i] = cl;
- if ((spec->flags & CBQCLF_CLASSMASK) != 0)
+ if ((spec->flags & CBQCLF_DEFCLASS) != 0)
cbqp->ifnp.default_ = cl;
if ((spec->flags & CBQCLF_CTLCLASS) != 0)
cbqp->ifnp.ctl_ = cl;