diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-13 22:03:19 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-13 22:03:19 +0000 |
commit | 781706bf63120e9943b4dc2618bdf767d9f40bd0 (patch) | |
tree | 0b570ddeffcc3acd0435f6050937521727aec4b2 /sbin | |
parent | 68cb6142751da64bac56dce8d7b1fc0951f58000 (diff) |
use pa->ifbandwidth instead of rate as reference bandwidth for the root queue
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_altq.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |