C Tcp Header Checksum Calculation