Using netgraph in kernel modules
Nomad Esst
noname.esst at yahoo.com
Mon Jun 20 05:40:23 UTC 2016
Hi
I included the two files in my kernel module :
#include <netgraph/netgraph.h>#include <netgraph/ng_message.h>
And here is contents of Makefile:
KMOD= echo SRCS= char_dev.c
.include <bsd.kmod.mk>
When I try to run make I face the following errors:
@/netgraph/ng_message.h:59: error: expected specifier-qualifier-list before 'u_char'
@/netgraph/ng_message.h:227: error: expected specifier-qualifier-list before 'uint32_t'
@/netgraph/ng_message.h:269: error: expected specifier-qualifier-list before 'u_int32_t'
@/netgraph/ng_message.h:283: error: expected specifier-qualifier-list before 'u_int32_t'
@/netgraph/ng_message.h:294: error: expected specifier-qualifier-list before 'u_int32_t'
@/netgraph/ng_message.h:306: error: expected specifier-qualifier-list before 'u_int64_t'
@/netgraph/ng_message.h:332: error: expected specifier-qualifier-list before 'u_int'
@/netgraph/ng_message.h:352: error: expected specifier-qualifier-list before 'uint32_t'
In file included from @/sys/lock.h:36,
from @/netgraph/netgraph.h:52,
from char_dev.c:2:
@/sys/_lock.h:36: error: expected specifier-qualifier-list before 'u_int'
In file included from @/netgraph/netgraph.h:52,
from char_dev.c:2:
@/sys/lock.h:60: error: expected specifier-qualifier-list before 'u_int'
In file included from char_dev.c:2:
@/netgraph/netgraph.h:1187: error: field 'tag' has incomplete type
*** [char_dev.o] Error code 1
Stop in /extra/char-dev.
What's the problem??
More information about the freebsd-hackers
mailing list