use correct length for UDP checksum calculation