From b23d6be9522df2d0b83d0dccdbc9204741324797 Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Tue, 25 Nov 2008 01:01:48 +0000 Subject: Make fxp(4) build with FXP_IP_CSUM_WAR. --- sys/dev/fxp/if_fxp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 = -- cgit v1.3