From mboxrd@z Thu Jan 1 00:00:00 1970 From: Changli Gao Subject: Re: fragmented packet Date: Mon, 6 Sep 2010 08:09:43 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Jan Engelhardt , netfilter-devel To: Nicola Padovano Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:34610 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754829Ab0IFAKE (ORCPT ); Sun, 5 Sep 2010 20:10:04 -0400 Received: by wwj40 with SMTP id 40so5696079wwj.1 for ; Sun, 05 Sep 2010 17:10:03 -0700 (PDT) In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Mon, Sep 6, 2010 at 8:04 AM, Nicola Padovano wrote: > those 140 bytes are the __tcp payload__ so the payload of IP is: Ip > header +TCP payload = 180... > isn't it? After checking the code of hping, I find the 'mtu' parameter of hping is the payload of a IP packet. So the packet you captured should be 20iphdr + 20tcphdr + 140data, 20tcphdr + 140data == 160("mtu" of hping), no fragmentation is needed. -- Regards, Changli Gao(xiaosuo@gmail.com)