aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2008-11-25 01:01:48 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2008-11-25 01:01:48 +0000
commitb23d6be9522df2d0b83d0dccdbc9204741324797 (patch)
tree6ed5f0b2a69db7b352acfc30a04cc4374e94850e
parent8fae3bd4f1e0ce1c4a07669415d02701ae1e2ff9 (diff)
downloadsrc-b23d6be9522df2d0b83d0dccdbc9204741324797.tar.gz
src-b23d6be9522df2d0b83d0dccdbc9204741324797.zip
Make fxp(4) build with FXP_IP_CSUM_WAR.
Notes
Notes: svn path=/head/; revision=185272
-rw-r--r--sys/dev/fxp/if_fxp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 4b10db2255e1..b4ee5aa3a6df 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -1315,8 +1315,8 @@ fxp_encap(struct fxp_softc *sc, struct mbuf *m_head)
if (m_head->m_pkthdr.len < 38) {
struct ip *ip;
m_head->m_data += ETHER_HDR_LEN;
- ip = mtod(mb_head, struct ip *);
- ip->ip_sum = in_cksum(mb_head, ip->ip_hl << 2);
+ ip = mtod(m_head, struct ip *);
+ ip->ip_sum = in_cksum(m_head, ip->ip_hl << 2);
m_head->m_data -= ETHER_HDR_LEN;
} else {
txp->tx_cb->ipcb_ip_activation_high =