diff options
Diffstat (limited to 'sys/altq/altq_var.h')
-rw-r--r-- | sys/altq/altq_var.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/altq/altq_var.h b/sys/altq/altq_var.h index c462df60e60..f5e6a42b0fc 100644 --- a/sys/altq/altq_var.h +++ b/sys/altq/altq_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: altq_var.h,v 1.6 2002/10/08 05:12:08 kjc Exp $ */ +/* $OpenBSD: altq_var.h,v 1.7 2002/10/11 09:30:30 kjc Exp $ */ /* $KAME: altq_var.h,v 1.8 2001/02/09 09:44:41 kjc Exp $ */ /* @@ -232,6 +232,9 @@ typedef void (timeout_t)(void *); #define m_pktlen(m) ((m)->m_pkthdr.len) +/* define a macro to check pf/altq until the transition is complete */ +#define PFALTQ_IS_ACTIVE() (!TAILQ_EMPTY(pf_altqs_active)) + struct ifnet; struct mbuf; struct flowinfo; struct pf_altq; struct pf_qstats; @@ -255,5 +258,12 @@ int altq_add_queue(struct pf_altq *); int altq_remove_queue(struct pf_altq *); int altq_getqstats(struct pf_altq *, void *, int *); +int cbq_pfattach(struct pf_altq *); +int cbq_add_altq(struct pf_altq *); +int cbq_remove_altq(struct pf_altq *); +int cbq_add_queue(struct pf_altq *); +int cbq_remove_queue(struct pf_altq *); +int cbq_getqstats(struct pf_altq *, void *, int *); + #endif /* _KERNEL */ #endif /* _ALTQ_ALTQ_VAR_H_ */ |