From 9f689fda5474c464b0ac63dc7a821ba1e34736bc Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 7 Apr 2022 03:38:56 +0900 Subject: [PATCH] sd-ipv4acd: actually drop the arp packet from one of the host interface Fixes a bug in 7f77917c0effe92d5fed52503bceddabcb4667ba. Fixes #23001. (cherry picked from commit 239adf03846ae2174d7db9a243a6eda4c2e2f165) --- src/libsystemd-network/sd-ipv4acd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-network/sd-ipv4acd.c b/src/libsystemd-network/sd-ipv4acd.c index 232b3b0333..a123d8e96a 100644 --- a/src/libsystemd-network/sd-ipv4acd.c +++ b/src/libsystemd-network/sd-ipv4acd.c @@ -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! */ }