|
Hello,
I have a 2.4.18 machine with 2 ethernet
interfaces.
I am trying to simulate a scenario where packet has
just arrived from one interface and going to the other.
I have build a kernel module that runs a kernel
thread. That kernel thread is invoked every second, and then
it does the following ;
-
alloc_skb
-
Fill the proper sk_buff
fields
-
Fill IP header
fields
-
Fill ICMP header
fields
-
skb_put with the data length
-
call to
netif_rx
I am able to see the packets with ethreal (on the
correct interface). I have also put some debug prints into the
kernel code (dev.c) and I am able to see those
packets getting into __kfree_skb.
However, when i do the rmmod the machine crashes ,
i.e., performs a reset !!
When I remove the netif_rx the rmmod returns
ok.
Can anyone please explain why does it crash
??
Any help is apreciated,
Thanks,
Chava
|
- netif_rx and dev stack Chava Leviatan
- Re: netif_rx and dev stack Gilboa Davara
- Re: netif_rx and dev stack Chava Leviatan
- Re: netif_rx and dev stack Oron Peled
- Re: netif_rx and dev stack Chava Leviatan
- Re: netif_rx and dev stack Oron Peled
- Re: netif_rx and dev stack Oron Peled
- Re: netif_rx and dev stack Rami Rosen
- Re: netif_rx and dev stack Chava Leviatan
- Re: netif_rx and dev stack Rami Rosen
- Re: netif_rx and dev stack Chava Leviatan
