diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-03 14:41:47 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-03 14:41:47 +0000 |
commit | 4c22bda345b24a0a973164b956058258a081a4d3 (patch) | |
tree | b73a819a4f7ab140fb1e849ca74b3705c89fad0f /sbin | |
parent | d145bb27e040bffbed5e30d2ebdab24a98eeeb81 (diff) |
use a simple linear queue ID assignment algorithm for PRIQ like we do for
cbq already.
together with the previous change that means it is now possible to have
differently named priq queues on different interfaces with the same
priorities and packets end up in the right queues.
ok dhartmei@ kjc@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_altq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c index 091d13c9fdb..0040f872893 100644 --- a/sbin/pfctl/pfctl_altq.c +++ b/sbin/pfctl/pfctl_altq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_altq.c,v 1.48 2003/04/03 05:08:59 kjc Exp $ */ +/* $OpenBSD: pfctl_altq.c,v 1.49 2003/04/03 14:41:46 henning Exp $ */ /* * Copyright (C) 2002 @@ -597,8 +597,8 @@ eval_pfqueue_priq(struct pfctl *pf, struct pf_altq *pa) } } - /* qid is tied to priority with priq */ - pa->qid = pa->priority + 1; + if (pa->qid == 0) + pa->qid = ++max_qid; return (0); } |