From 781706bf63120e9943b4dc2618bdf767d9f40bd0 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sun, 13 Apr 2003 22:03:19 +0000 Subject: use pa->ifbandwidth instead of rate as reference bandwidth for the root queue --- sbin/pfctl/pfctl_altq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c index 4e985eee383..0c837887ffd 100644 --- a/sbin/pfctl/pfctl_altq.c +++ b/sbin/pfctl/pfctl_altq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_altq.c,v 1.62 2003/04/13 21:44:42 henning Exp $ */ +/* $OpenBSD: pfctl_altq.c,v 1.63 2003/04/13 22:03:18 henning Exp $ */ /* * Copyright (C) 2002 @@ -251,7 +251,7 @@ eval_pfaltq(struct pfctl *pf, struct pf_altq *pa, struct node_queue_bw *bw, } else if ((pa->ifbandwidth = eval_bwspec(bw, rate)) == 0) pa->ifbandwidth = rate; - errors += eval_queue_opts(pa, opts, rate); + errors += eval_queue_opts(pa, opts, pa->ifbandwidth); /* if tbrsize is not specified, use heuristics */ if (pa->tbrsize == 0) { -- cgit v1.2.3