Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2008 01:01:49 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185272 - head/sys/dev/fxp
Message-ID:  <200811250101.mAP11n7J003460@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Tue Nov 25 01:01:48 2008
New Revision: 185272
URL: http://svn.freebsd.org/changeset/base/185272

Log:
  Make fxp(4) build with FXP_IP_CSUM_WAR.

Modified:
  head/sys/dev/fxp/if_fxp.c

Modified: head/sys/dev/fxp/if_fxp.c
==============================================================================
--- head/sys/dev/fxp/if_fxp.c	Tue Nov 25 00:59:11 2008	(r185271)
+++ head/sys/dev/fxp/if_fxp.c	Tue Nov 25 01:01:48 2008	(r185272)
@@ -1315,8 +1315,8 @@ fxp_encap(struct fxp_softc *sc, struct m
 			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 =



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811250101.mAP11n7J003460>