Hello,

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 (it happens because it is in an "interrupt context"). After some researches I found that 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 in the OpenWrt Buildroot guide.

Is there any flag or additional way to compile netpoll in OpenWrt?

I searched for the keyword "netpoll" in "make menuconfig" without success.

Thanks for your help.