From: Jouni Malinen Date: Sun, 5 Apr 2020 14:56:20 +0000 (+0300) Subject: wlantest: Use BSD compatible UDP header struct X-Git-Tag: hostap_2_10~1477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9db8b59c98f289f9ac10201771d51063af64424;p=thirdparty%2Fhostap.git wlantest: Use BSD compatible UDP header struct Signed-off-by: Jouni Malinen --- diff --git a/wlantest/wired.c b/wlantest/wired.c index 653be337a..67ae8a9af 100644 --- a/wlantest/wired.c +++ b/wlantest/wired.c @@ -212,9 +212,9 @@ static void process_udp(struct wlantest *wt, u32 dst, u32 src, return; udp = (const struct udphdr *) data; /* TODO: check UDP checksum */ - sport = be_to_host16(udp->source); - dport = be_to_host16(udp->dest); - ulen = be_to_host16(udp->len); + sport = be_to_host16(udp->uh_sport); + dport = be_to_host16(udp->uh_dport); + ulen = be_to_host16(udp->uh_ulen); if (ulen > len) return;