LinuxQuestions.org
Help answer threads with 0 replies.
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 11-28-2007, 03:28 AM   #1
subraybhat
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Lightbulb fragmentation in linux for IXP2350 proc


I need to fragment the IPv4 packets which are longer than MTU and DF bit is not set,by sending it to OS.
Is there any inbuilt function in linux kernel to fragment the packet according to the size MTU of next span of the network?
How do I send the packet to linux kernel and how do i recieve the fragmented packets from linux kernel?
plz suggest me some packet handling mechanism in such case.
Mainly i need to do this operation in IXP2350 processor.
 
Old 11-29-2007, 04:03 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Moved: This thread is more suitable in Linux-Kernel and has been moved accordingly to help your thread/question get the exposure it deserves.

The functions are in ip_fragment.c (in net/ipv4/ directory of the kernel sources). All that functionality is used by the input and output functions for IP.

If you plan to use that functionality without touching the code, you can setup normal routing and set MTU at the link out of the Linux machine to the desired value. Before being sent to the interface, the packets will get fragmented and you'll get what you want.
 
Old 11-30-2007, 12:06 AM   #3
subraybhat
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Question

i am using reassembly of packet functionality.The reassembled packets are clloected back from kernel by an open socket. So if i go for another open socket to collect fragmented packet will there be any conflict of these two open sockets?
 
  


Reply

Tags
fragmentation, linux, procedure


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
Fragmentation Information on Enterprise Linux Morpheus Linux - Server 4 04-29-2007 08:19 AM
LXer: Fighting Linux Fragmentation LXer Syndicated Linux News 0 04-28-2006 06:33 PM
Linux filesystems and fragmentation Frogular Linux - General 1 04-29-2005 03:47 AM
Does Linux ext2 and 3 really never suffer fragmentation? MadCactus Linux - General 4 11-03-2004 02:36 AM
why not? - file system fragmentation on Linux akidd Linux - Software 12 05-18-2003 06:39 AM


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

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