From owner-freebsd-ipfw@FreeBSD.ORG Wed Aug 8 07:57:44 2007 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1436916A41B for ; Wed, 8 Aug 2007 07:57:44 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp3.yandex.ru (smtp3.yandex.ru [213.180.200.14]) by mx1.freebsd.org (Postfix) with ESMTP id 57F8713C46C for ; Wed, 8 Aug 2007 07:57:43 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:53753 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4747287AbXHHH5b (ORCPT ); Wed, 8 Aug 2007 11:57:31 +0400 X-Comment: RFC 2476 MSA function at smtp3.yandex.ru logged sender identity as: bu7cher Message-ID: <46B97769.4010203@yandex.ru> Date: Wed, 08 Aug 2007 11:57:29 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Pekka Savola References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ipfw@freebsd.org Subject: Re: ip6fw byte reporting error in v6 X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2007 07:57:44 -0000 Pekka Savola wrote: > Fiddling around with ipfw, I noticed that 'ip6fw -ta l', under byte > reports, does not include the base IPv6 header in the length calculation > (hmm.. I wonder how it would calculate the length of extension-header > chained packet). > > IPv4 byte statistics, on the other hand, include the IPv4 header bytes. > > Is this a known problem? Is it a more general BSD kernel problem? Probably, you should use ipfw(8) instead of ip6fw(8). ip6fw was removed and it's functional moved into ipfw(8). -- WBR, Andrey V. Elsukov