Slirp fix.

This commit is contained in:
Toni Wilen 2017-04-16 22:13:30 +03:00
parent c628c26c38
commit c1be5812d7
2 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@ int cksum(struct mbuf *m, int len)
if (len < mlen)
mlen = len;
#ifdef DEBUG
len -= mlen;
#endif
/*
* Force to even boundary.
*/

View File

@ -371,7 +371,7 @@ insert:
*/
if (m->m_flags & M_EXT) {
int delta;
delta = (char *)ip - m->m_dat;
delta = (char *)q - m->m_dat;
q = (struct ipasfrag *)(m->m_ext + delta);
}