From owner-freebsd-sparc64@FreeBSD.ORG Tue Sep 7 13:54:49 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40DF316A4CF; Tue, 7 Sep 2004 13:54:49 +0000 (GMT) Received: from smtp-ft6.fr.colt.net (smtp-ft6.fr.colt.net [213.41.78.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28B8343D2D; Tue, 7 Sep 2004 13:54:48 +0000 (GMT) (envelope-from nanard@tou.nu) Received: from PAR22635 (noc-bes.adm.fr.colt.net [195.68.1.120]) by smtp-ft6.fr.colt.net with SMTP id i87Dsl812246; Tue, 7 Sep 2004 15:54:47 +0200 Message-ID: <018e01c494e2$3bdc2760$51fd210a@EU.COLT> From: "nanard" To: Date: Tue, 7 Sep 2004 15:54:45 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: FreeBSD 5.3BETA2 / Netra T1 & PF problem X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 13:54:49 -0000 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 -------------- 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;