]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dhcp_snoop: Silence a sparse warning
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Jun 2016 22:47:54 +0000 (01:47 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 Jun 2016 16:02:58 +0000 (19:02 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/dhcp_snoop.c

index 3a77225f380e398df45be098126633b2d40e1960..f0212fb2a984bfa39d7b2fd3274b5e6003d4aee2 100644 (file)
@@ -121,7 +121,8 @@ static void handle_dhcp(void *ctx, const u8 *src_addr, const u8 *buf,
 
                wpa_printf(MSG_DEBUG, "dhcp_snoop: Found DHCPACK for " MACSTR
                           " @ IPv4 address %s/%d",
-                          MAC2STR(sta->addr), ipaddr_str(ntohl(b->your_ip)),
+                          MAC2STR(sta->addr),
+                          ipaddr_str(be_to_host32(b->your_ip)),
                           prefixlen);
 
                if (sta->ipaddr == b->your_ip)