summaryrefslogtreecommitdiffstats
path: root/sys/dev/msk
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2007-04-25 01:13:38 +0000
committeryongari <yongari@FreeBSD.org>2007-04-25 01:13:38 +0000
commit2e9eafcc02ba64530bb21adaffbb7b5978906c8a (patch)
tree461eb16cbfffe26af314435a9de8a6570f761987 /sys/dev/msk
parentec4a19fefd12c15afc72b7596f41a03bfa2d269f (diff)
downloadFreeBSD-src-2e9eafcc02ba64530bb21adaffbb7b5978906c8a.zip
FreeBSD-src-2e9eafcc02ba64530bb21adaffbb7b5978906c8a.tar.gz
Fix TCP header size calculation logic which is used for setting
TSO MTU.
Diffstat (limited to 'sys/dev/msk')
-rw-r--r--sys/dev/msk/if_msk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c
index 57038e1..47c8e22 100644
--- a/sys/dev/msk/if_msk.c
+++ b/sys/dev/msk/if_msk.c
@@ -2706,7 +2706,7 @@ msk_encap(struct msk_if_softc *sc_if, struct mbuf **m_head)
*m_head = NULL;
return (ENOBUFS);
}
- tcp = mtod(m, struct tcphdr *);
+ tcp = (struct tcphdr *)(mtod(m, char *) + offset);
offset += (tcp->th_off << 2);
}
*m_head = m;
OpenPOWER on IntegriCloud