aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeffin Mammen <jmammen@qti.qualcomm.com>2017-07-06 10:58:50 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-06 11:00:30 (GMT)
commit31ec556cefb7b7ebf227fbb7c5f5750006cbe03a (patch)
treedd7eecd5031552e6bb0acf36181d87910fe465cb /src
parent9d3eb21ec4714d50b150d1a9f76b50b68b84e9ba (diff)
downloadhostap-31ec556cefb7b7ebf227fbb7c5f5750006cbe03a.zip
hostap-31ec556cefb7b7ebf227fbb7c5f5750006cbe03a.tar.gz
hostap-31ec556cefb7b7ebf227fbb7c5f5750006cbe03a.tar.bz2
FILS: Fix the IP header protocol field in HLP DHCP response
The IP header should indicate that UDP is used in the message. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src')
-rw-r--r--src/ap/fils_hlp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/fils_hlp.c b/src/ap/fils_hlp.c
index 3fc8721..c5e7aec 100644
--- a/src/ap/fils_hlp.c
+++ b/src/ap/fils_hlp.c
@@ -263,6 +263,7 @@ static void fils_dhcp_handler(int sd, void *eloop_ctx, void *sock_ctx)
iph->ihl = sizeof(*iph) / 4;
iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
iph->ttl = 1;
+ iph->protocol = 17; /* UDP */
iph->saddr = hapd->conf->dhcp_server.u.v4.s_addr;
iph->daddr = dhcp->client_ip;
iph->check = ip_checksum(iph, sizeof(*iph));