Skip to contentSkip to conversation

problems calling devinet_ioctl from netfilter i/p hook

DISCUSSION Subhash Gopinath 1 participant 1 message Dec 10, 2004

lore
Share & tools
lore
#0 lore raw

Hello all,

I need to set the IP address of an ethernet interface from a netfilter receive hook function
(in a kernel module)....If I call devinet_ioctl() from the hook function....The kernel hangs reporting "Bug at skbuff.c:174" Looks like I cannot call the ioctl from netfilter hooks since they are called in an ISR...
I tried moving the ioctl call to a tasklet , still I get the same error...Is there any other solution ?

Thanks,
Subhash