netdev
[Top] [All Lists]

Re: raw sockets, IP_HDRINCL, and fragmentation

To: Chris Friesen <cfriesen@xxxxxxxxxxxxxxxxxx>
Subject: Re: raw sockets, IP_HDRINCL, and fragmentation
From: Andi Kleen <ak@xxxxxxx>
Date: Thu, 7 Mar 2002 20:18:18 +0100
Cc: Andi Kleen <ak@xxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <3C87B887.3757786F@nortelnetworks.com>
References: <3C87AD05.F9BC8457@nortelnetworks.com> <20020307191645.A27213@oldwotan.suse.de> <3C87B887.3757786F@nortelnetworks.com>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.3.22.1i
On Thu, Mar 07, 2002 at 01:59:19PM -0500, Chris Friesen wrote:
> Andi Kleen wrote:
> > 
> > On Thu, Mar 07, 2002 at 01:10:13PM -0500, Chris Friesen wrote:
> > >
> > > Just a quick question before I try some prototyping.  If I have a raw 
> > > socket and
> > > set IP_HDRINCL, then send out an IP packet larger than the underlying 
> > > physical
> > > layer can handle (say 2KB packets over ethernet) will the ip stack 
> > > fragment the
> > > packet for me?
> > 
> > They are not, as documented in raw(7)
> 
> 
> My man raw(7) says:
> 
> "When  the IP_HDRINCL option is set datagrams will not be fragmented and are
> limited to the interface MTU.  This is a limitation in Linux 2.2."
> 
> Does 2.4 have this same limitation?

It has.

-Andi

<Prev in Thread] Current Thread [Next in Thread>