Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/altq/libaltq fail if the default class is larger th...
details: https://anonhg.NetBSD.org/src/rev/41aaa0d614fa
branches: trunk
changeset: 532073:41aaa0d614fa
user: itojun <itojun%NetBSD.org@localhost>
date: Fri May 31 06:53:48 2002 +0000
description:
fail if the default class is larger than the ctl class.
report by Paul Civati <paul%xciv.org@localhost>
diffstat:
usr.sbin/altq/libaltq/qop_cbq.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r ac41f8b25553 -r 41aaa0d614fa usr.sbin/altq/libaltq/qop_cbq.c
--- a/usr.sbin/altq/libaltq/qop_cbq.c Fri May 31 06:52:00 2002 +0000
+++ b/usr.sbin/altq/libaltq/qop_cbq.c Fri May 31 06:53:48 2002 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: qop_cbq.c,v 1.5 2002/03/05 04:11:53 itojun Exp $ */
-/* $KAME: qop_cbq.c,v 1.6 2001/12/03 08:20:55 kjc Exp $ */
+/* $NetBSD: qop_cbq.c,v 1.6 2002/05/31 06:53:48 itojun Exp $ */
+/* $KAME: qop_cbq.c,v 1.7 2002/05/31 06:03:35 kjc Exp $ */
/*
* Copyright (c) Sun Microsystems, Inc. 1993-1998 All rights reserved.
*
@@ -342,6 +342,9 @@
/* reserve bandwidth for ctl_class */
ctl_bandwidth =
ifinfo->bandwidth / 100 * CTL_PBANDWIDTH;
+ if (bandwidth <= ctl_bandwidth)
+ LOG(LOG_ERR, 0,
+ "bandwidth for default class too small!");
bandwidth -= ctl_bandwidth;
}
}
Home |
Main Index |
Thread Index |
Old Index