Added checksum calculation to TCP packet