aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wired.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2020-04-05 14:56:20 (GMT)
committerJouni Malinen <j@w1.fi>2020-04-05 15:53:59 (GMT)
commite9db8b59c98f289f9ac10201771d51063af64424 (patch)
tree32592709a1ae296c219ff2e9cfd27aa661b03b8a /wlantest/wired.c
parentec182d5e939c03b2688e7fd8618e8f34af021b04 (diff)
downloadhostap-e9db8b59c98f289f9ac10201771d51063af64424.zip
hostap-e9db8b59c98f289f9ac10201771d51063af64424.tar.gz
hostap-e9db8b59c98f289f9ac10201771d51063af64424.tar.bz2
wlantest: Use BSD compatible UDP header struct
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wlantest/wired.c')
-rw-r--r--wlantest/wired.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wlantest/wired.c b/wlantest/wired.c
index 653be33..67ae8a9 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;