mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
wlantest: Use BSD compatible UDP header struct
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ec182d5e93
commit
e9db8b59c9
@ -212,9 +212,9 @@ static void process_udp(struct wlantest *wt, u32 dst, u32 src,
|
|||||||
return;
|
return;
|
||||||
udp = (const struct udphdr *) data;
|
udp = (const struct udphdr *) data;
|
||||||
/* TODO: check UDP checksum */
|
/* TODO: check UDP checksum */
|
||||||
sport = be_to_host16(udp->source);
|
sport = be_to_host16(udp->uh_sport);
|
||||||
dport = be_to_host16(udp->dest);
|
dport = be_to_host16(udp->uh_dport);
|
||||||
ulen = be_to_host16(udp->len);
|
ulen = be_to_host16(udp->uh_ulen);
|
||||||
|
|
||||||
if (ulen > len)
|
if (ulen > len)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user