The UDP checksum is required for IPv6 and optional for IPv4.