Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-28-2007, 04:28 AM   #1
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, 05:03 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,578

Rep: Reputation: 191Reputation: 191
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, 01:06 AM   #3
LQ Newbie
Registered: Nov 2007
Posts: 2

Original Poster
Rep: Reputation: 0

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?


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

All times are GMT -5. The time now is 12:20 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