Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/website/static/security/patches/EN-09:03/fxp.patch
18096 views
1
Index: sys/dev/fxp/if_fxp.c
2
===================================================================
3
RCS file: /home/ncvs/src/sys/dev/fxp/if_fxp.c,v
4
retrieving revision 1.266.2.14
5
retrieving revision 1.266.2.15
6
diff -p -I __FBSDID -I $FreeBSD -u -u -r1.266.2.14 -r1.266.2.15
7
--- sys/dev/fxp/if_fxp.c 9 Feb 2009 04:02:53 -0000 1.266.2.14
8
+++ sys/dev/fxp/if_fxp.c 7 May 2009 01:14:59 -0000 1.266.2.15
9
@@ -1486,7 +1486,8 @@ fxp_encap(struct fxp_softc *sc, struct m
10
* checksum in the first frame driver should compute it.
11
*/
12
ip->ip_sum = 0;
13
- ip->ip_len = htons(ifp->if_mtu);
14
+ ip->ip_len = htons(m->m_pkthdr.tso_segsz + (ip->ip_hl << 2) +
15
+ (tcp->th_off << 2));
16
tcp->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
17
htons(IPPROTO_TCP + (tcp->th_off << 2) +
18
m->m_pkthdr.tso_segsz));
19
20