Path: blob/main/website/static/security/patches/EN-09:03/fxp.patch
18096 views
Index: sys/dev/fxp/if_fxp.c1===================================================================2RCS file: /home/ncvs/src/sys/dev/fxp/if_fxp.c,v3retrieving revision 1.266.2.144retrieving revision 1.266.2.155diff -p -I __FBSDID -I $FreeBSD -u -u -r1.266.2.14 -r1.266.2.156--- sys/dev/fxp/if_fxp.c 9 Feb 2009 04:02:53 -0000 1.266.2.147+++ sys/dev/fxp/if_fxp.c 7 May 2009 01:14:59 -0000 1.266.2.158@@ -1486,7 +1486,8 @@ fxp_encap(struct fxp_softc *sc, struct m9* checksum in the first frame driver should compute it.10*/11ip->ip_sum = 0;12- ip->ip_len = htons(ifp->if_mtu);13+ ip->ip_len = htons(m->m_pkthdr.tso_segsz + (ip->ip_hl << 2) +14+ (tcp->th_off << 2));15tcp->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,16htons(IPPROTO_TCP + (tcp->th_off << 2) +17m->m_pkthdr.tso_segsz));181920