LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   help need in IP fragmntation kernel code (https://www.linuxquestions.org/questions/linux-kernel-70/help-need-in-ip-fragmntation-kernel-code-716221/)

kasi86 04-01-2009 11:12 PM

help need in IP fragmntation kernel code
 
Hi,
I am using kernel 2.6.28.8.I need to collect all fragments generated by the kernel.For that i write a small code to collect all my fragments in ip_fragment() function present in net/ipv4/ip_output.c.

Note:
While collecting fragments i just disabled the default output() for that fragment.

At last after collecting all fragments, i just output all fragments continuously without any interval gap.
I wrote this in both fast and slow path processing in ip_fragment().

For testing this i just send ICMP packets though ping command in flood mode.At that time the kernel gets crashed.And shows error as some interrupt raised in dev_queue.

May i know why the kernel get crashed?
or Any other way is there for collecting fragments and send bulkly?

Mara 04-03-2009 04:18 PM

The idea you show should not crash the kernel on its own. It must be the implementation. I'd check carefully especially the fragment where you deal with possible errors when outputting the fragments. Also, including a small debug into your NIC driver code to show overflows may be a good idea.

kasi86 04-15-2009 01:08 AM

Thanks for your comments.

But one thing this implementation is working well for either forwarding or locally generated packets anyone at a time.
When both coming together only it gets crashed.There is no memory leak also there.


All times are GMT -5. The time now is 01:02 AM.