Skip to content

Commit add8f94

Browse files
committed
define altq struct for ioctl communication
includes the queue structure field and a trace of the number of queues being loaded into the kernel and make npf_altq available in include directory for use in altq framework
1 parent 3629a57 commit add8f94

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

sys/net/npf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
#
55

66
INCSDIR= /usr/include/net
7-
INCS= npf.h
7+
INCS= npf.h npf_altq.h
88

99
.include <bsd.kinc.mk>

sys/net/npf/npf.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ bool npf_autounload_p(void);
202202

203203
#endif /* _KERNEL */
204204

205+
#include "npf_altq.h"
206+
205207
#define NPF_SRC 0
206208
#define NPF_DST 1
207209

@@ -309,6 +311,12 @@ typedef struct npf_ioctl_table {
309311
} nct_data;
310312
} npf_ioctl_table_t;
311313

314+
/* altq struct for ioctl */
315+
struct npfioc_altq {
316+
u_int32_t nq;
317+
struct npf_altq altq;
318+
};
319+
312320
/*
313321
* IOCTL operations.
314322
*/

0 commit comments

Comments
 (0)