netdev
[Top] [All Lists]

Re: raw sockets, IP_HDRINCL, and fragmentation

To: Andi Kleen <ak@xxxxxxx>
Subject: Re: raw sockets, IP_HDRINCL, and fragmentation
From: Chris Friesen <cfriesen@xxxxxxxxxxxxxxxxxx>
Date: Thu, 07 Mar 2002 13:59:19 -0500
Cc: netdev@xxxxxxxxxxx
References: <3C87AD05.F9BC8457@nortelnetworks.com> <20020307191645.A27213@oldwotan.suse.de>
Sender: owner-netdev@xxxxxxxxxxx
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?


-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@xxxxxxxxxxxxxxxxxx

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