correct byte order for UDP length field