diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-08-20 12:33:58 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-08-20 12:33:58 +0000 |
commit | 2c3b98082c6bc60bec82591f811d95304c00a564 (patch) | |
tree | 52c12657cfacfeee3ea518e26c0e38e2cb8cc7fc /sys/altq | |
parent | f379a955603e12c5378b2463281e61a9ef4579cc (diff) |
#define CBQ_MAXPRI RM_MAXPRIO and use it
Diffstat (limited to 'sys/altq')
-rw-r--r-- | sys/altq/altq_cbq.c | 4 | ||||
-rw-r--r-- | sys/altq/altq_cbq.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/altq/altq_cbq.c b/sys/altq/altq_cbq.c index 77ffe4cdc60..64f82fbc138 100644 --- a/sys/altq/altq_cbq.c +++ b/sys/altq/altq_cbq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: altq_cbq.c,v 1.16 2003/04/02 14:51:45 henning Exp $ */ +/* $OpenBSD: altq_cbq.c,v 1.17 2003/08/20 12:33:57 henning Exp $ */ /* $KAME: altq_cbq.c,v 1.9 2000/12/14 08:12:45 thorpej Exp $ */ /* @@ -272,7 +272,7 @@ cbq_add_queue(struct pf_altq *a) opts = &a->pq_u.cbq_opts; /* check parameters */ - if (a->priority >= RM_MAXPRIO) + if (a->priority >= CBQ_MAXPRI) return (EINVAL); /* Get pointers to parent and borrow classes. */ diff --git a/sys/altq/altq_cbq.h b/sys/altq/altq_cbq.h index f56ad5378a6..a0e3cdb9073 100644 --- a/sys/altq/altq_cbq.h +++ b/sys/altq/altq_cbq.h @@ -1,4 +1,4 @@ -/* $OpenBSD: altq_cbq.h,v 1.7 2003/04/02 14:51:45 henning Exp $ */ +/* $OpenBSD: altq_cbq.h,v 1.8 2003/08/20 12:33:57 henning Exp $ */ /* $KAME: altq_cbq.h,v 1.5 2000/12/02 13:44:40 kjc Exp $ */ /* @@ -68,6 +68,7 @@ extern "C" { #define CBQCLF_CLASSMASK 0xf000 /* class mask */ #define CBQ_MAXQSIZE 200 +#define CBQ_MAXPRI RM_MAXPRIO typedef struct _cbq_class_stats_ { u_int32_t handle; |