LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

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

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

Rep: Reputation: 148Reputation: 148
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
kasi86
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.
 
  


Reply


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


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

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