From: Jeffin Mammen Date: Thu, 6 Jul 2017 10:58:50 +0000 (+0300) Subject: FILS: Fix the IP header protocol field in HLP DHCP response X-Git-Tag: hostap_2_7~1213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31ec556cefb7b7ebf227fbb7c5f5750006cbe03a;p=thirdparty%2Fhostap.git 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 --- 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));