Missed odd address test when transcribing the Alpha version.

This fixes the checksum problems seen with telnet.
This commit is contained in:
Peter Grehan 2003-02-13 08:56:41 +00:00
parent 7978e21002
commit 9412f79eaa

View File

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