diff options
author | Kenjiro Cho <kjc@cvs.openbsd.org> | 2001-06-27 06:07:48 +0000 |
---|---|---|
committer | Kenjiro Cho <kjc@cvs.openbsd.org> | 2001-06-27 06:07:48 +0000 |
commit | 617b9204d0b61c24f1c430d0d271187effbd4db7 (patch) | |
tree | f0298d5992870f173131e355b24266b1167650ca /sys/netinet/if_ether.h | |
parent | 68127d8aa8be05026092d74eb27663a9fe287c85 (diff) |
introduce the ALTQ queue macros into sys/net files.
the new model removes direct references to the fields in ifp->if_snd,
and defines the following macros to manipulate ifp->if_snd.
IFQ_ENQUEUE(ifq, m, pktattr, err)
IFQ_DEQUEUE(ifq, m)
IFQ_POLL(ifq, m)
IFQ_PURGE(ifq)
IFQ_IS_EMPTY(ifq)
the new model also enforces some rules regarding how to use these macros.
details are descrined in
http://www.csl.sony.co.jp/~kjc/software/altq-new-design.txt
Diffstat (limited to 'sys/netinet/if_ether.h')
-rw-r--r-- | sys/netinet/if_ether.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h index 7abd64b245a..308effcfd9a 100644 --- a/sys/netinet/if_ether.h +++ b/sys/netinet/if_ether.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.h,v 1.16 2001/06/23 21:32:26 fgsch Exp $ */ +/* $OpenBSD: if_ether.h,v 1.17 2001/06/27 06:07:47 kjc Exp $ */ /* $NetBSD: if_ether.h,v 1.22 1996/05/11 13:00:00 mycroft Exp $ */ /* @@ -285,6 +285,9 @@ void revarprequest __P((struct ifnet *)); int revarpwhoarewe __P((struct ifnet *, struct in_addr *, struct in_addr *)); int revarpwhoami __P((struct in_addr *, struct ifnet *)); int db_show_arptab __P((void)); +#ifdef ALTQ +void altq_etherclassify(struct ifaltq *, struct mbuf *, struct altq_pktattr *); +#endif /* ALTQ */ #else |