I'm writing a kernel module for OpenWRT that registers a callback to an hook with NetFilter.
This callback needs to receive UDP messages.
Standard sockets cannot be used in this environment because sock_recvmsg causes a Kernel Panic. According to this question the netpoll API should do the trick.
But when I compile my module, this message is showed:
WARNING: "netpoll_send_udp" [/home/user/Desktop/netpoll/my_netpoll.ko] undefined!
probably the reason is that netpoll.c is not compiled with the rest of OpenWrt (the netpoll.c file is present, but there is no netpoll.o).
OpenWRT is compiled for the MIPS architecture, as described here.
Is there any flag or additional way to compile netpoll in OpenWrt?
I searched for the keyword "netpoll" in "make menuconfig" without success.