cksum is computed incorrectly

The previous code read off the end of *buf, and also produced incorrect TCP checksums, when nbytes was odd.
Merge pull request #5 from ewust/patch-1

cksum is computed incorrectly