mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 16:58:41 -05:00
proxyarp: Fix x_snoop multicast-to-unicast debug print
l2_packet_send() returns >= 0 on success, i.e., non-zero value does not mean failure. Fix this debug print to show up only on negative return values. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
89052e9952
commit
ef3ea80c68
@ -104,7 +104,7 @@ void x_snoop_mcast_to_ucast_convert_send(struct hostapd_data *hapd,
|
|||||||
|
|
||||||
os_memcpy(buf, sta->addr, ETH_ALEN);
|
os_memcpy(buf, sta->addr, ETH_ALEN);
|
||||||
res = l2_packet_send(hapd->sock_dhcp, NULL, 0, buf, len);
|
res = l2_packet_send(hapd->sock_dhcp, NULL, 0, buf, len);
|
||||||
if (res) {
|
if (res < 0) {
|
||||||
wpa_printf(MSG_DEBUG,
|
wpa_printf(MSG_DEBUG,
|
||||||
"x_snoop: Failed to send mcast to ucast converted packet to "
|
"x_snoop: Failed to send mcast to ucast converted packet to "
|
||||||
MACSTR, MAC2STR(sta->addr));
|
MACSTR, MAC2STR(sta->addr));
|
||||||
|
Loading…
Reference in New Issue
Block a user