FreeBSD 5.3BETA2 / Netra T1 & PF problem
nanard
nanard at tou.nu
Tue Sep 7 06:54:49 PDT 2004
Hi Pyun,
The patch works correctly.
I recompiled my kernel and PF has a normal behaviour.
Many Thanks !
Regards,
Nicolas Liénard
----------
Okay. Could you try attached patch?
Regards,
Pyun YongHyeon
--
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 = 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;
More information about the freebsd-sparc64
mailing list