From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Subject: Re: How to avoid fragmentation Date: Thu, 27 Oct 2005 14:41:07 +0200 Message-ID: <4360CAE3.6030600@eurodev.net> References: <435D40ED.1080109@speedy.com.ar> <435D701C.1080501@eurodev.net> <435D6030.8000509@speedy.com.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Netfilter Development Mailinglist Return-path: To: Gervasio Bernal In-Reply-To: <435D6030.8000509@speedy.com.ar> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Hi, Gervasio Bernal wrote: > I will show you an example: > > +---------------+ > | IP | > | header | > |---------------| > | TCP | > | header | > |---------------| > | My header | > |---------------| > | | > | USER DATA | > | | > +---------------+ > > I calculte the USER DATA checksum and put it in a field of My header. > If the packet is larger than MTU, it will be fragmented and the checksum > calculated in My header will be incorrect when I recieve it in the other > endpoint of the communication. > > There is some form to avoid the fragmentation? In this case, have a look at skb_checksum() -- Pablo