diff options
| author | Pyun YongHyeon <yongari@FreeBSD.org> | 2010-10-24 21:14:01 +0000 |
|---|---|---|
| committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2010-10-24 21:14:01 +0000 |
| commit | ca80e9cf3a1abc38b54e4aa4b95923cde9b9cd04 (patch) | |
| tree | 38dd9b1b5915639e6df94a54c41ec18e6e63802f /sys/dev/alc | |
| parent | 3227992b61688ae23903e7d14682162bedfdbeef (diff) | |
Notes
Diffstat (limited to 'sys/dev/alc')
| -rw-r--r-- | sys/dev/alc/if_alc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c index 10061f3e1b44..15505714fa0d 100644 --- a/sys/dev/alc/if_alc.c +++ b/sys/dev/alc/if_alc.c @@ -2104,6 +2104,8 @@ alc_encap(struct alc_softc *sc, struct mbuf **m_head) * Reset IP checksum and recompute TCP pseudo * checksum as NDIS specification said. */ + ip = (struct ip *)(mtod(m, char *) + ip_off); + tcp = (struct tcphdr *)(mtod(m, char *) + poff); ip->ip_sum = 0; tcp->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, htons(IPPROTO_TCP)); |
