why i get always this error?
PHP Code:
CC [M] /home/poc/poc.o
/home/poc/poc.c: In function ‘init_module’:
/home/poc/poc.c:200:2: error: implicit declaration of function ‘nf_register_hook’ [-Werror=implicit-function-declaration]
nf_register_hook(&pre_hook);
^
/home/poc/poc.c: In function ‘cleanup_module’:
/home/poc/poc.c:215:2: error: implicit declaration of function ‘nf_unregister_hook’ [-Werror=implicit-function-declaration]
nf_unregister_hook(&pre_hook);
^
i have this:
/boot/config-4.15.0:CONFIG_NETFILTER=y
/boot/config-4.15.0:CONFIG_NETFILTER_ADVANCED=y
what else is needed???
edit: just found out that global hooks nf_register_hook where removed in Kernel 4.13.x and newer kernels.. so back to 4.12 which works their.