diff --git a/gtests/net/packetdrill/run_packet.c b/gtests/net/packetdrill/run_packet.c index 5b4c9f2bf384bbc1e09623ed6e990564dd92ef0d..52d08d3fdc9807eb1b24637f0cde59eb862054ff 100644 --- a/gtests/net/packetdrill/run_packet.c +++ b/gtests/net/packetdrill/run_packet.c @@ -821,8 +821,8 @@ static int verify_udp( const struct udp *script_udp = script_packet->headers[layer].h.udp; if (check_field("udp_len", - script_udp->len, - actual_udp->len, error)) + ntohs(script_udp->len), + ntohs(actual_udp->len), error)) return STATUS_ERR; return STATUS_OK; }