Fix tcp checksum calculation error when the buffer length is not even.
on my project, I found that the tcp checksum is incorrect.
After some analysis, it seems that the read_u16 (which is based on read_exact) will raise an eof error on odd length buffer thus make the last byte not be calculated.
Fix tcp checksum calculation error when the buffer length is not even.
on my project, I found that the tcp checksum is incorrect. After some analysis, it seems that the
read_u16
(which is based on read_exact) will raise an eof error on odd length buffer thus make the last byte not be calculated.