Checksum routine for Internet Protocol family headers.