LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-28-2013, 02:22 AM   #1
samiran.linux
LQ Newbie
 
Registered: Jul 2013
Posts: 28

Rep: Reputation: Disabled
Question force kernel 2.6.33.3 to send the packet with MF flag set on through raw socket


2.6.33.3-85.fc13.x86_64
This my linux kernel version...
I am building linux raw socket with IP_HDRINCL to send raw ip packet .. But kernel is not sending the packets with ipv4 MF flag set on. Kernel reassembels all the fargment then send the whole packet to network.. and if i dont send the last fragment kernel does not sending any packet at all..
Actually my question is how to force kernel to send the packet with MF flag set on through raw socket...
PLz dont give answer like fedora EOL.... plz comment ASP if anyone have any idea...
 
Old 07-29-2013, 02:36 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
The raw socket means that you have to handle everything, such as IP header. That means that your application take care of fragment and set MF flag.
 
Old 07-31-2013, 03:31 AM   #3
samiran.linux
LQ Newbie
 
Registered: Jul 2013
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
The raw socket means that you have to handle everything, such as IP header. That means that your application take care of fragment and set MF flag.
But I am in situation where I am doing all the things myself but kernel is not sending any packet until the last packet being send..which means kernel is not putting the packet into the network with MF flag set on. This bug has been fixed in kernel version 2.6.36 .. Now what I am thinking is how I can patch my kernel to remove the bug.. I want to do this just for learning how kernel patch can be made and install them.. any good tutorial link to know this stuff??
 
Old 08-02-2013, 02:08 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
This is relative to build a new kernel. The steps are dependent on distribution. I did it on Fedora. You can refer this to find out how to rebuild your kernel with patch. Following link is for Fedora.

http://fedoraproject.org/wiki/Building_a_custom_kernel.
 
  


Reply



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
send a file through raw socket using C programming enginius Programming 20 11-29-2010 07:33 AM
RAW socket in kernel module unikat Linux - Kernel 4 08-09-2010 04:38 AM
Receive Ethernet VLAN frame on the native ethernet interface (raw packet socket) scottbiker Linux - Networking 0 07-13-2009 03:49 AM
[c] Raw socket, set source ip to 0.0.0.0.0 darell Programming 5 03-19-2009 07:35 PM
raw socket/ip packet help shouup Programming 14 04-24-2006 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration