Fix TCP header size calculation logic which is used for setting

TSO MTU.
This commit is contained in:
yongari 2007-04-25 01:13:38 +00:00
parent ec4a19fefd
commit 2e9eafcc02

View File

@ -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;