initial version, corresponding to ipfw3-2012
[ipfw-google.git] / ipfw / include / net / pfvar.h
1 #ifndef _PF_VAR_H_
2 #define _PF_VAR_H_
3
4 /*
5  * replacement for FreeBSD's pfqueue.h
6  */
7 #include <sys/queue.h>
8
9 #define DIOCSTARTALTQ   _IO  ('D', 42)
10 #define DIOCSTOPALTQ    _IO  ('D', 43)
11
12 struct pf_altq {
13         TAILQ_ENTRY(pf_altq)     entries;
14         /* ... */
15         u_int32_t                qid;           /* return value */
16
17 #define PF_QNAME_SIZE            64
18         char                     qname[PF_QNAME_SIZE];  /* queue name */
19
20 };
21
22 struct pfioc_altq {
23         u_int32_t        action;
24         u_int32_t        ticket;
25         u_int32_t        nr;
26         struct pf_altq   altq;
27 };
28
29 #define DIOCGETALTQS    _IOWR('D', 47, struct pfioc_altq)
30 #define DIOCGETALTQ    _IOWR('D', 48, struct pfioc_altq)
31
32 #endif /* !_PF_VAR_H */