Why I can't compile a simple netfilter hook module?

Jonathan Neuschäfer j.neuschaefer at gmx.net
Tue May 22 11:08:29 EDT 2012


On Tue, May 08, 2012 at 01:07:43AM -0300, Chir0n wrote:
> /home/fabio/Desktop/modules/hello.c:19:18: error: ‘NF_IP_PRE_ROUTING’
> undeclared (first use in this function)

This symbol is declared in a section that's "only for userspace
compatibility" (netfilter_ipv4.h, line 10).

HTH,
	Jonathan Neuschäfer



More information about the Kernelnewbies mailing list