Skip to content

Commit

Permalink
Slirp fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioni committed Apr 16, 2017
1 parent c628c26 commit c1be581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions slirp/cksum.cpp
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion slirp/ip_input.cpp
Expand Up @@ -371,7 +371,7 @@ struct ip *ip_reass(struct ip *ip, struct ipq *fp)
*/
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);
}

Expand Down

0 comments on commit c1be581

Please sign in to comment.