diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-12 15:09:58 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-12 15:09:58 +0000 |
commit | f12347fca2d2e230e25fb3f6333ee938ba856b21 (patch) | |
tree | cfe2801a96b754ef191d205b38256d7051edfedd /sbin/pfctl/pfctl_altq.c | |
parent | 0581f44f7967f4fecb7f0098b9eb7940ef315c23 (diff) |
assign queue IDs for HFSC simimar to what we do for PRIQ and CBQ
Diffstat (limited to 'sbin/pfctl/pfctl_altq.c')
-rw-r--r-- | sbin/pfctl/pfctl_altq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c index a935f34a18f..07da77cf7b1 100644 --- a/sbin/pfctl/pfctl_altq.c +++ b/sbin/pfctl/pfctl_altq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_altq.c,v 1.52 2003/04/11 15:18:33 henning Exp $ */ +/* $OpenBSD: pfctl_altq.c,v 1.53 2003/04/12 15:09:57 henning Exp $ */ /* * Copyright (C) 2002 @@ -660,7 +660,8 @@ eval_pfqueue_hfsc(struct pfctl *pf, struct pf_altq *pa) pa->qid = HFSC_ROOTCLASS_HANDLE; pa->pq_u.hfsc_opts.lssc_m2 = pa->ifbandwidth; return (0); - } + } else if (pa->qid == 0) + pa->qid = ++max_qid; opts = &pa->pq_u.hfsc_opts; LIST_INIT(&rtsc); |