From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 04:09:55 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id 7CC3E16A4CF; Thu, 16 Sep 2004 04:09:55 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 18234 invoked by alias); 25 Jul 2004 23:38:55 -0000 Delivered-To: unirz@vampire.homelinux.org Received: (qmail 18231 invoked from network); 25 Jul 2004 23:38:55 -0000 Received: from mailstud.rz.uni-karlsruhe.de (129.13.185.210) by pd9e392b4.dip.t-dialin.net with SMTP; 25 Jul 2004 23:38:55 -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 1BosbJ-0000p7-9v for max.laier@stud.uni-karlsruhe.de; Mon, 26 Jul 2004 01:40:17 +0200 Received: from localhost (exim@[127.0.0.1]) by spamstud.rz.uni-karlsruhe.de with spam-scanned (Exim 4.34 #1) id 1BosbJ-0006MW-5x for max.laier@stud.uni-karlsruhe.de; Mon, 26 Jul 2004 01:40:17 +0200 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by spamstud.rz.uni-karlsruhe.de with esmtp (Exim 4.34 #1) id 1BosbJ-0006ML-2Z for max.laier@stud.uni-karlsruhe.de; Mon, 26 Jul 2004 01:40:17 +0200 Received: from [212.227.126.213] (helo=mxng17.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BosbJ-00080M-00 for max.laier@stud.uni-karlsruhe.de; Mon, 26 Jul 2004 01:40:17 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng17.kundenserver.de with esmtp (Exim 3.35 #1) id 1BosbI-0006z5-00 for max@love2party.net; Mon, 26 Jul 2004 01:40:16 +0200 Received: from localhost (localhost [127.0.0.1])ESMTP id A358272C249; Sun, 25 Jul 2004 18:13: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 31929-63; Sun, 25 Jul 2004 18:13:32 -0500 (EST) Received: from turing (localhost [127.0.0.1])ESMTP id 608A672C286; Sun, 25 Jul 2004 18:13:31 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Sun, 25 Jul 2004 18:13:12 -0500 (EST) X-Original-To: pf4freebsd@freelists.org Delivered-To: pf4freebsd@freelists.org Received: from localhost (localhost [127.0.0.1])ESMTP id AD90872C21A for ; Sun, 25 Jul 2004 18:13:11 -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 31388-85 for ; Sun, 25 Jul 2004 18:13:11 -0500 (EST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171])ESMTP id AC91772C1D5 for ; Sun, 25 Jul 2004 18:13:10 -0500 (EST) Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1Bosas-00061F-00; Mon, 26 Jul 2004 01:39:50 +0200 Received: from [217.227.146.180] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1Bosas-0005W2-00; Mon, 26 Jul 2004 01:39:50 +0200 From: Max Laier To: pf4freebsd@freelists.org User-Agent: KMail/1.6.2 References: <200407230602.34822.max@love2party.net> <20040723083119.GA3240@kt-is.co.kr> In-Reply-To: <20040723083119.GA3240@kt-is.co.kr> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-03=_KREBBQ/Yfbd+MbQ"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407260137.46024.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: 382 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: 875359c46648a8448fb876cb0a9d0021 X-UID: 493 X-Length: 12221 X-Mailman-Approved-At: Thu, 16 Sep 2004 04:12:49 +0000 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Pyun YongHyeon Subject: [pf4freebsd] Re: 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:55 -0000 X-Original-Date: Mon, 26 Jul 2004 01:37:39 +0200 X-List-Received-Date: Thu, 16 Sep 2004 04:09:55 -0000 --Boundary-03=_KREBBQ/Yfbd+MbQ Content-Type: multipart/mixed; boundary="Boundary-01=_DREBBaCzq5Kw+AW" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_DREBBaCzq5Kw+AW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 23 July 2004 10:31, Pyun YongHyeon wrote: > On Fri, Jul 23, 2004 at 06:02:27AM +0200, Max Laier wrote: > > Hi, > > > > Christian S.J. Peron reported a very strange problem with pf in a rece= nt > > current kernel. It turned out (after days of brainwracking debugging) > > that the problem went away by disabling the i386 optimized version of > > in4_cksum(). The problem I am having with this, is that I can't explain > > why this (standalone) thing would break all of a sudden (earlier kernel > > seemed to work). So what I am looking for are other examples for this > > behavior or possible explanations. > > Hi Max, > > I don't know where the problem is.... :-( > > How about this? Instead of using hand-optimized code, it would be > better to use system supplied one. This will work on icc too. > I have to go out now. Please review the patch and let me know your > opinions.(It wasn't tested at all.) This one can be used for a while. > Personally, I really want to import NetBSD's approach. I like it. I can recall that we talked about using in_cksum_skip when we fr= ist=20 did in4_cksum, but for some reason it wasn't useable then (iirc). Can your= =20 remember the complete story? Anyway, I ran this on my gateway for two days and it seems okay. I'd like t= o=20 have a little more feedback before commiting, though. Please copy attached= =20 in4_cksum.c into src/sys/contrib/pf/netinet, build and run with it. If you= =20 have any shake out, please let me know. Pyun, I assert the original OpenBSD in4_cksum.c copyright on this one. Are = you=20 okay with this solution? =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=_DREBBaCzq5Kw+AW-- --Boundary-03=_KREBBQ/Yfbd+MbQ Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBBBERJXyyEoT62BG0RAoa5AJ9bjVNWvSrrtU5fiE56Nzs2WHk1OQCcCVcP Jr8eMYrev/gyIO3JXRrOo1c= =L7hU -----END PGP SIGNATURE----- --Boundary-03=_KREBBQ/Yfbd+MbQ--