]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-ipv4acd: actually drop the arp packet from one of the host interface
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Apr 2022 18:38:56 +0000 (03:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Apr 2022 06:02:21 +0000 (15:02 +0900)
Fixes a bug in 7f77917c0effe92d5fed52503bceddabcb4667ba.

Fixes #23001.

src/libsystemd-network/sd-ipv4acd.c

index 8303e7fb3453a60afeb42c796adb71c42d3f8762..1c5eae3cff14a725d1ca8278bf9a00f1b312a116 100644 (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! */
 }