]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
proxyarp: Add debug log entry on multicast-to-unicast conversion
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 28 Nov 2014 17:27:07 +0000 (19:27 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 28 Nov 2014 20:37:05 +0000 (22:37 +0200)
This makes it easier to debug operations. The debug message is marked
EXCESSIVE, though, to avoid filling the logs with too much information
in default debugging cases.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/x_snoop.c

index 0ae20128a66663aa794ae7eacc303fef7ecc5fd5..09c621cdd23f4282c12320bc7d907db8fa0b7abf 100644 (file)
@@ -95,6 +95,10 @@ void x_snoop_mcast_to_ucast_convert_send(struct hostapd_data *hapd,
        if (!(dst_addr[0] & 0x01))
                return;
 
+       wpa_printf(MSG_EXCESSIVE, "x_snoop: Multicast-to-unicast conversion "
+                  MACSTR " -> " MACSTR " (len %u)",
+                  MAC2STR(dst_addr), MAC2STR(sta->addr), (unsigned int) len);
+
        /* save the multicast destination address for restoring it later */
        os_memcpy(addr, buf, ETH_ALEN);