From owner-freebsd-net@FreeBSD.ORG Wed Nov 9 06:01:18 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5364F106566B for ; Wed, 9 Nov 2011 06:01:18 +0000 (UTC) (envelope-from crest@informatik.uni-bremen.de) Received: from informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) by mx1.freebsd.org (Postfix) with ESMTP id BDD648FC28 for ; Wed, 9 Nov 2011 06:01:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.3/8.14.3) with ESMTP id pA7CRnSb010232 for ; Mon, 7 Nov 2011 13:27:49 +0100 (CET) Received: from t420.crest.dn42 (unknown [134.102.48.143]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id C04F9A02 for ; Mon, 7 Nov 2011 11:49:26 +0100 (CET) Message-ID: <4EB7B7B7.2060805@informatik.uni-bremen.de> Date: Mon, 07 Nov 2011 11:49:27 +0100 From: Crest User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111011 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4EB7AD2A.5050002@frasunek.com> In-Reply-To: <4EB7AD2A.5050002@frasunek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: dummynet damages ICMPv6 packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 06:01:18 -0000 On 07.11.2011 11:04, Przemyslaw Frasunek wrote: > Hello, > > we are experiencing interesing behaviour of dummynet enabled on IPv6 interfaces. > When the following rules are added: > > add pipe 24 ip from any to any in recv vlan1 > add pipe 25 ip from any to any out xmit vlan1 > > all ICMPv6 packets passing on vlan1 are being damaged: > > 10:55:53.180801 IP6 fe80::215:17ff:feae:4d99> ff02::1: ip-proto-64 16 > 0x0000: 6000 0000 0010 403a fe80 0000 0000 0000 `.....@:........ > 0x0010: 0215 17ff feae 4d99 ff02 0000 0000 0000 ......M......... > 0x0020: 0000 0000 0000 0001 8000 2dc9 31f2 002e ..........-.1... > 0x0030: 4eb7 ab29 0002 c207 N..).... > > Please note invalid protocol shown by tcpdump and shifted bytes at offset 7 and > 8 (it reads 0x403a but should be 0x3a40). > > After changing dummynet rule to: > > add pipe 24 ip4 from any to any in recv vlan1 > add pipe 25 ip4 from any to any out xmit vlan1 > > packets are no longer malformed: > > 11:01:49.934348 IP6 fe80::215:17ff:feae:4d99> ff02::1: ICMP6, echo request, seq > 0, length 16 > 0x0000: 6000 0000 0010 3a40 fe80 0000 0000 0000 `.....:@........ > 0x0010: 0215 17ff feae 4d99 ff02 0000 0000 0000 ......M......... > 0x0020: 0000 0000 0000 0001 8000 ab9a 3341 0000 ............3A.. > 0x0030: 4eb7 ac8d 000e 41a5 N.....A. > > The above problem affects 8.2-STABLE compiled on 3rd May 2011. > Looks like you ran into kern/157239.