altq_localq.c revision 1.2.2.2 1 1.2.2.2 bouyer /* $NetBSD: altq_localq.c,v 1.2.2.2 2001/01/05 17:39:36 bouyer Exp $ */
2 1.2.2.2 bouyer /* $KAME: altq_localq.c,v 1.3 2000/10/18 09:15:23 kjc Exp $ */
3 1.2.2.2 bouyer
4 1.2.2.2 bouyer
5 1.2.2.2 bouyer #if defined(__FreeBSD__) || defined(__NetBSD__)
6 1.2.2.2 bouyer #include "opt_altq.h"
7 1.2.2.2 bouyer #endif /* __FreeBSD__ || __NetBSD__ */
8 1.2.2.2 bouyer #ifdef ALTQ_LOCALQ /* localq is enabled by ALTQ_LOCALQ option in opt_altq.h */
9 1.2.2.2 bouyer
10 1.2.2.2 bouyer #include <sys/param.h>
11 1.2.2.2 bouyer #include <sys/mbuf.h>
12 1.2.2.2 bouyer #include <sys/socket.h>
13 1.2.2.2 bouyer #include <sys/sockio.h>
14 1.2.2.2 bouyer
15 1.2.2.2 bouyer #include <net/if.h>
16 1.2.2.2 bouyer #include <netinet/in.h>
17 1.2.2.2 bouyer
18 1.2.2.2 bouyer #include <altq/altq.h>
19 1.2.2.2 bouyer #include <altq/altq_conf.h>
20 1.2.2.2 bouyer
21 1.2.2.2 bouyer /*
22 1.2.2.2 bouyer * localq device interface
23 1.2.2.2 bouyer */
24 1.2.2.2 bouyer altqdev_decl(localq);
25 1.2.2.2 bouyer
26 1.2.2.2 bouyer int
27 1.2.2.2 bouyer localqopen(dev, flag, fmt, p)
28 1.2.2.2 bouyer dev_t dev;
29 1.2.2.2 bouyer int flag, fmt;
30 1.2.2.2 bouyer struct proc *p;
31 1.2.2.2 bouyer {
32 1.2.2.2 bouyer /* everything will be done when the queueing scheme is attached. */
33 1.2.2.2 bouyer return 0;
34 1.2.2.2 bouyer }
35 1.2.2.2 bouyer
36 1.2.2.2 bouyer int
37 1.2.2.2 bouyer localqclose(dev, flag, fmt, p)
38 1.2.2.2 bouyer dev_t dev;
39 1.2.2.2 bouyer int flag, fmt;
40 1.2.2.2 bouyer struct proc *p;
41 1.2.2.2 bouyer {
42 1.2.2.2 bouyer int error = 0;
43 1.2.2.2 bouyer
44 1.2.2.2 bouyer return error;
45 1.2.2.2 bouyer }
46 1.2.2.2 bouyer
47 1.2.2.2 bouyer int
48 1.2.2.2 bouyer localqioctl(dev, cmd, addr, flag, p)
49 1.2.2.2 bouyer dev_t dev;
50 1.2.2.2 bouyer ioctlcmd_t cmd;
51 1.2.2.2 bouyer caddr_t addr;
52 1.2.2.2 bouyer int flag;
53 1.2.2.2 bouyer struct proc *p;
54 1.2.2.2 bouyer {
55 1.2.2.2 bouyer int error = 0;
56 1.2.2.2 bouyer
57 1.2.2.2 bouyer return error;
58 1.2.2.2 bouyer }
59 1.2.2.2 bouyer
60 1.2.2.2 bouyer #ifdef KLD_MODULE
61 1.2.2.2 bouyer
62 1.2.2.2 bouyer static struct altqsw localq_sw =
63 1.2.2.2 bouyer {"localq", localqopen, localqclose, localqioctl};
64 1.2.2.2 bouyer
65 1.2.2.2 bouyer ALTQ_MODULE(altq_localq, ALTQT_LOCALQ, &localq_sw);
66 1.2.2.2 bouyer
67 1.2.2.2 bouyer #endif /* KLD_MODULE */
68 1.2.2.2 bouyer
69 1.2.2.2 bouyer #endif /* ALTQ_LOCALQ */
70