Missed odd address test when transcribing the Alpha version.
This fixes the checksum problems seen with telnet.
This commit is contained in:
parent
7978e21002
commit
9412f79eaa
@ -228,7 +228,7 @@ in_cksum_skip(struct mbuf *m, int len, int skip)
|
||||
if (len < mlen)
|
||||
mlen = len;
|
||||
|
||||
if (clen & 1)
|
||||
if ((clen ^ (int) addr) & 1)
|
||||
sum += in_cksumdata(addr, mlen) << 8;
|
||||
else
|
||||
sum += in_cksumdata(addr, mlen);
|
||||
|
Loading…
Reference in New Issue
Block a user