diff options
Diffstat (limited to 'sys/dev/sge/if_sge.c')
-rw-r--r-- | sys/dev/sge/if_sge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/sge/if_sge.c b/sys/dev/sge/if_sge.c index e294edd..e727d05 100644 --- a/sys/dev/sge/if_sge.c +++ b/sys/dev/sge/if_sge.c @@ -1457,7 +1457,9 @@ sge_encap(struct sge_softc *sc, struct mbuf **m_head) * Reset IP checksum and recompute TCP pseudo * checksum that NDIS specification requires. */ + ip = (struct ip *)(mtod(m, char *) + ip_off); ip->ip_sum = 0; + tcp = (struct tcphdr *)(mtod(m, char *) + poff); tcp->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, htons(IPPROTO_TCP)); *m_head = m; |