1 /* $NetBSD: altq_localq.c,v 1.9 2006/11/16 01:32:37 christos Exp $ */
2 /* $KAME: altq_localq.c,v 1.7 2003/07/10 12:07:48 kjc Exp $ */
4 * a skeleton file for implementing a new queueing discipline.
5 * this file is in the public domain.
9 __KERNEL_RCSID(0, "$NetBSD: altq_localq.c,v 1.9 2006/11/16 01:32:37 christos Exp $");
15 #ifdef ALTQ_LOCALQ /* localq is enabled by ALTQ_LOCALQ option in opt_altq.h */
17 #include <sys/param.h>
19 #include <sys/socket.h>
20 #include <sys/sockio.h>
23 #include <netinet/in.h>
25 #include <altq/altq.h>
26 #include <altq/altq_conf.h>
30 * localq device interface
35 localqopen(dev_t dev
, int flag
, int fmt
,
38 /* everything will be done when the queueing scheme is attached. */
43 localqclose(dev_t dev
, int flag
, int fmt
,
52 localqioctl(dev_t dev
, ioctlcmd_t cmd
, void *addr
,
53 int flag
, struct lwp
*l
)
62 static struct altqsw localq_sw
=
63 {"localq", localqopen
, localqclose
, localqioctl
};
65 ALTQ_MODULE(altq_localq
, ALTQT_LOCALQ
, &localq_sw
);
67 #endif /* KLD_MODULE */
69 #endif /* ALTQ3_COMPAT */
70 #endif /* ALTQ_LOCALQ */