From owner-freebsd-sparc64@FreeBSD.ORG Tue Sep 7 12:02:13 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 40C2E16A4CE; Tue, 7 Sep 2004 12:02:13 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id A127043D41; Tue, 7 Sep 2004 12:02:12 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i87BtBAh055305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 7 Sep 2004 20:55:11 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) by michelle.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i87C1vNp005832 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 7 Sep 2004 21:01:58 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.12.10/8.12.10/Submit) id i87C1u3Z005831; Tue, 7 Sep 2004 21:01:56 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Tue, 7 Sep 2004 21:01:56 +0900 From: Pyun YongHyeon To: sparc64@freebsd.org Message-ID: <20040907120156.GC5532@kt-is.co.kr> References: <010f01c494c4$e4d34b50$51fd210a@EU.COLT> <20040907103854.GB5532@kt-is.co.kr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline In-Reply-To: <20040907103854.GB5532@kt-is.co.kr> User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) cc: max@freebsd.org Subject: Re: FreeBSD 5.3BETA2 / Netra T1 & PF problem X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr 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 12:02:13 -0000 --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Sep 07, 2004 at 07:38:54PM +0900, To sparc64@freebsd.org wrote: > On Tue, Sep 07, 2004 at 12:24:44PM +0200, nanard wrote: > > Hi, > > > > I'm running FreeBSD 5.3beta2 on a Sun Netra T1 box: > > > > vroum# uname -a > > FreeBSD vroum.fr.colt.net 5.3-BETA3 FreeBSD 5.3-BETA3 #1: Mon Sep 6 12:39:27 CEST 2004 root@vroum.fr.colt.net:/usr/src/sys/sparc64/compile/VROUM sparc64 > > > > I recompiled the kernel with PF/ALTQ support: > > > > options PFIL_HOOKS # pfil(9) framework > > device pf #PF OpenBSD packet-filter firewall > > device pflog #logging support interface for PF > > options ALTQ > > > > In /etc/rc.conf, i added this: > > > > pf_enable="YES" > > pflog_enable="YES" > > > > To test, I modified /etc/pf.conf with only this line: > > > > vroum# cat /etc/pf.conf > > pass log all > > vroum# > > > > I'm connected remotely and localy (port com) from a windows XP to the fbsd box. > > > > (winXP:10.33.253.81) ----> (Fbsd:10.33.253.145) > > > > When PF is disable, i can connect by SSH. > > > > When PF is enable, i can't connect by SSH. (and i lost active ssh connexion) > > > > Sorry. I know this issue. You can disable RX ckecksum offload to > work pf at present. However the real cause of this issue is still > under investigation. Since without pf, hme(4) works well with checksum > offload capability, I guess there is problems in pf code. > I'll let you know if I find the cause. Also CCed to Max. > Okay. Could you try attached patch? Regards, Pyun YongHyeon -- Pyun YongHyeon --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="pf.patch" --- 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 = mtod(m, struct ip *); sum = 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 ^= 0xffff; ++hw_assist; --VS++wcV0S1rZb1Fb--