View Single Post
asdfxD
Veteran Member
Join Date: Apr 2011
Old 02-06-2018 , 12:55   Re: [Linux] [PoC] DDoS Protection - Kernel redirection!
Reply With Quote #24

why i get always this error?

PHP Code:
CC [M]  /home/poc/poc.o
/home/poc/poc.cIn function ‘init_module’:
/home/poc/poc.c:200:2errorimplicit declaration of function ‘nf_register_hook’ [-Werror=implicit-function-declaration]
  
nf_register_hook(&pre_hook);
  ^
/
home/poc/poc.cIn function ‘cleanup_module’:
/home/poc/poc.c:215:2errorimplicit 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.

Last edited by asdfxD; 03-05-2018 at 00:50.
asdfxD is offline