Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Sep 2004 15:54:45 +0200
From:      "nanard" <nanard@tou.nu>
To:        <freebsd-sparc64@freebsd.org>
Subject:   Re: FreeBSD 5.3BETA2 / Netra T1 & PF problem
Message-ID:  <018e01c494e2$3bdc2760$51fd210a@EU.COLT>

next in thread | raw e-mail | index | archive | help
Hi Pyun,

The patch works correctly.

I recompiled my kernel and PF has a normal behaviour.

Many Thanks !

Regards,

Nicolas Li=E9nard

----------

Okay. Could you try attached patch?

Regards,
Pyun YongHyeon
--=20
Pyun YongHyeon <http://www.kr.freebsd.org/~yongari>;
-------------- next part --------------
--- sys/contrib/pf/net/pf.c.orig	Mon Aug 16 20:29:43 2004
+++ sys/contrib/pf/net/pf.c	Tue Sep  7 20:49:31 2004
@@ -5620,8 +5620,8 @@
 				ip =3D mtod(m, struct ip *);=09
 				sum =3D in_pseudo(ip->ip_src.s_addr,
 					ip->ip_dst.s_addr,
-					htonl(m->m_pkthdr.csum_data +
-					    IPPROTO_TCP + ntohs(ip->ip_len)));
+					htonl(m->m_pkthdr.csum_data + len +
+					    IPPROTO_TCP));
 			}
 			sum ^=3D 0xffff;
 			++hw_assist;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?018e01c494e2$3bdc2760$51fd210a>