1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

sd-ipv4acd: actually drop the arp packet from one of the host interface

Fixes a bug in 7f77917c0e.

Fixes #23001.

(cherry picked from commit 239adf0384)
This commit is contained in:
Yu Watanabe 2022-04-07 03:38:56 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent e3d57bc301
commit 9f689fda54

View File

@ -329,7 +329,7 @@ static bool ipv4acd_arp_conflict(sd_ipv4acd *acd, const struct ether_arp *arp, b
if (acd->check_mac_callback &&
acd->check_mac_callback(acd, (const struct ether_addr*) arp->arp_sha, acd->check_mac_userdata) > 0)
/* sender hardware is one of the host's interfaces, ignoring. */
return true;
return false;
return true; /* conflict! */
}