From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 04:09:30 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id 6380016A4CF; Thu, 16 Sep 2004 04:09:30 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 8540 invoked by alias); 23 Jul 2004 04:03:48 -0000 Delivered-To: unirz@vampire.homelinux.org Received: (qmail 8537 invoked from network); 23 Jul 2004 04:03:48 -0000 Received: from mailstud.rz.uni-karlsruhe.de (129.13.185.210) by pd9530d58.dip.t-dialin.net with SMTP; 23 Jul 2004 04:03:48 -0000 Received: from spamstud.rz.uni-karlsruhe.de (spamstud.rz.uni-karlsruhe.de [129.13.185.237]) by mailstud.rz.uni-karlsruhe.de with esmtp (Exim 4.34 #1) id 1BnrIx-0002QB-On for max.laier@stud.uni-karlsruhe.de; Fri, 23 Jul 2004 06:05:07 +0200 Received: from localhost (exim@[127.0.0.1]) by spamstud.rz.uni-karlsruhe.de with spam-scanned (Exim 4.34 #1) id 1BnrIx-0008Eu-Ke for max.laier@stud.uni-karlsruhe.de; Fri, 23 Jul 2004 06:05:07 +0200 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by spamstud.rz.uni-karlsruhe.de with esmtp (Exim 4.34 #1) id 1BnrIx-0008Ej-Hi for max.laier@stud.uni-karlsruhe.de; Fri, 23 Jul 2004 06:05:07 +0200 Received: from [212.227.126.153] (helo=mxng02.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BnrIx-0005V6-00 for max.laier@stud.uni-karlsruhe.de; Fri, 23 Jul 2004 06:05:07 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng02.kundenserver.de with esmtp (Exim 3.35 #1) id 1BnrIx-0005P2-00 for max@love2party.net; Fri, 23 Jul 2004 06:05:07 +0200 Received: from localhost (localhost [127.0.0.1])ESMTP id 976DC72C9B5; Thu, 22 Jul 2004 22:38:50 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32110-63; Thu, 22 Jul 2004 22:38:50 -0500 (EST) Received: from turing (localhost [127.0.0.1])ESMTP id F274B72C071; Thu, 22 Jul 2004 22:38:49 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Thu, 22 Jul 2004 22:38:33 -0500 (EST) X-Original-To: pf4freebsd@freelists.org Delivered-To: pf4freebsd@freelists.org Received: from localhost (localhost [127.0.0.1])ESMTP id BD18F72C9B5 for ; Thu, 22 Jul 2004 22:38:32 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29662-92 for ; Thu, 22 Jul 2004 22:38:32 -0500 (EST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186])ESMTP id 1D0A972C662 for ; Thu, 22 Jul 2004 22:38:32 -0500 (EST) Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BnrId-0007Mi-00; Fri, 23 Jul 2004 06:04:47 +0200 Received: from [217.83.13.88] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1BnrIc-0006SK-00; Fri, 23 Jul 2004 06:04:47 +0200 From: Max Laier To: pf4freebsd@freelists.org User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-03=_a3IABda5EbhwUBj"; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200407230602.34822.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 X-Virus-Scanned: by amavisd-new at freelists.org X-archive-position: 376 X-ecartis-version: Ecartis v1.0.0 Sender: pf4freebsd-bounce@freelists.org Errors-To: pf4freebsd-bounce@freelists.org X-original-sender: max@love2party.net Precedence: normal X-list: pf4freebsd X-Virus-Scanned: by amavisd-new at freelists.org X-Provags-Forward: max@love2party.net -> max.laier@stud.uni-karlsruhe.de X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on mail6.rz.uni-karlsruhe.de X-Spam-Status: No, hits=-4.9 required=7.0 tests=BAYES_00 autolearn=no version=2.61 X-Spam-Level: X-Scan-Signature: c613453dfb215c8e6416dcad6bcfc975 X-UID: 488 X-Length: 7611 X-Mailman-Approved-At: Thu, 16 Sep 2004 04:12:49 +0000 Subject: [pf4freebsd] Strange problem/Need help X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Reply-To: pf4freebsd@freelists.org List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 16 Sep 2004 04:09:30 -0000 X-Original-Date: Fri, 23 Jul 2004 06:02:27 +0200 X-List-Received-Date: Thu, 16 Sep 2004 04:09:30 -0000 --Boundary-03=_a3IABda5EbhwUBj Content-Type: multipart/mixed; boundary="Boundary-01=_T3IABbC0tO8hq8g" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_T3IABbC0tO8hq8g Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Christian S.J. Peron reported a very strange problem with pf in a recent=20 current kernel. It turned out (after days of brainwracking debugging) that= =20 the problem went away by disabling the i386 optimized version of in4_cksum(= ).=20 The problem I am having with this, is that I can't explain why this=20 (standalone) thing would break all of a sudden (earlier kernel seemed to=20 work). So what I am looking for are other examples for this behavior or=20 possible explanations. If anybody else was/is seeing high numbers of "bad checksum" in #netstat -s= sp=20 tcp or #netstat -ssp udp with rescent current, please try the attached patc= h=20 and report in if it fixed the problem. I am really really disturbed by this as I just can't explain. Hence I am=20 really really hoping for you to explain what's going on here or at least=20 providing additional data points to get an idea. Thanks in advance. I am not commiting this is order to keep the code exposed and hope for acti= ve=20 users to report! =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --Boundary-01=_T3IABbC0tO8hq8g Content-Type: text/x-diff; charset="us-ascii"; name="maybe_broken.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="maybe_broken.patch" Index: in4_cksum.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/store/mlaier/fcvs/src/sys/contrib/pf/netinet/in4_cksum.c,v retrieving revision 1.3 diff -u -r1.3 in4_cksum.c =2D-- in4_cksum.c 16 Jun 2004 23:24:01 -0000 1.3 +++ in4_cksum.c 23 Jul 2004 03:03:09 -0000 @@ -73,7 +73,7 @@ #include #include =20 =2D#if defined(__FreeBSD__) && defined(__i386__) +#if 0 /* defined(__FreeBSD__) && defined(__i386__) */ /* * Copied from FreeBSD 5.0 sys/i386/i386/in_cksum.c * XXX @@ -197,7 +197,7 @@ if (len < mlen) mlen =3D len; len -=3D mlen; =2D#if defined(__FreeBSD__) && defined(__i386__) +#if 0 /* defined(__FreeBSD__) && defined(__i386__) */ /* * Force to long boundary so we do longword aligned * memory operations --Boundary-01=_T3IABbC0tO8hq8g-- --Boundary-03=_a3IABda5EbhwUBj Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBBAI3aXyyEoT62BG0RAu6mAJwOm9Y5wO75nwhFoT2eGU10PJJeKQCeM0df 2EkZUM0WqCEPtBSMJGWBLYs= =Oc/v -----END PGP SIGNATURE----- --Boundary-03=_a3IABda5EbhwUBj--