Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2004 04:09:30 -0000
From:      Max Laier <max@love2party.net>
To:        pf4freebsd@freelists.org
Subject:   [pf4freebsd] Strange problem/Need help
Message-ID:  <200407230602.34822.max@love2party.net>

next in thread | raw e-mail | index | archive | help

--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 <netinet/ip.h>
 #include <netinet/ip_var.h>
=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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407230602.34822.max>