From 31ec556cefb7b7ebf227fbb7c5f5750006cbe03a Mon Sep 17 00:00:00 2001 From: Jeffin Mammen Date: Thu, 6 Jul 2017 13:58:50 +0300 Subject: [PATCH] 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 --- src/ap/fils_hlp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ap/fils_hlp.c b/src/ap/fils_hlp.c index 3fc872139..c5e7aec4a 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));