Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 04-01-2009, 11:12 PM   #1
LQ Newbie
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
help need in IP fragmntation kernel code

I am using kernel 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.

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?
Old 04-03-2009, 04:18 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
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.
Old 04-15-2009, 01:08 AM   #3
LQ Newbie
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Kernel 2.6 Eilya Linux - Security 7 09-04-2008 03:24 PM
how to import c code into kernel ravindra1103 Linux - Kernel 2 04-04-2007 08:00 PM
help getting kernel source code extendedping Linux - Kernel 24 10-06-2006 06:59 AM
kernel code ashley_31 Linux - General 13 06-06-2006 06:39 AM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 01:37 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration