added ip4 checksum calculation routines