represents a network packet. can be used to build or parse packets.
Converts a number to an array of its byte representation
Calculates a checksum. Used by ipv4 and icmp. The two bytes starting at
Return the sum of the data as 16-bit words (assumes big endian)