Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Jun 11, 2025

Backport bd4c0b7~2..bd4c0b7 from #91294

Fixes #91118.

jukkar added 2 commits June 11, 2025 17:27
When adding IPv4 address to the network interface, there is no
need to start ACD procedure for localhost or point-to-point links.
The ACD start function would mark the IP address like 127.0.0.1 as
tentative and never make it preferred which would then cause issues
when selecting the network address for sending.
As the ACD start is also called when the network interface comes up,
add the localhost and point-to-point link check to ACD start function
so that we will avoid ACD checks in this case.

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit 902c95a)
When the network interface goes down, we call
net_ipv4_autoconf_reset() which removes the autoaddress
from the network interface.
The net_ipv4_autoconf_reset() is also called when ACD is started
in which case we could see this error message

<dbg> net_if_start_acd: Starting ACD for iface 2
<err> net_if: iface 2 addr 169.254.174.230 (net_if_ipv4_addr_rm():4625)
<dbg> net_if_ipv4_addr_rm: Address 169.254.174.230 not found (-22)

This error is superfluous and not needed. So before trying to
remove the address, check if the interface already has it set and
only then remove it.

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit bd4c0b7)
@github-actions github-actions bot added the Backport Backport PR and backport failure issues label Jun 11, 2025
@github-project-automation github-project-automation bot moved this to To do in Backports Jun 11, 2025
@sonarqubecloud
Copy link

@kartben kartben closed this Jul 23, 2025
@github-project-automation github-project-automation bot moved this from To do to Done in Backports Jul 23, 2025
@kartben kartben reopened this Jul 23, 2025
@github-project-automation github-project-automation bot moved this from Done to Needs more info in Backports Jul 23, 2025
@sonarqubecloud
Copy link

@kartben kartben merged commit 2c0ff49 into v4.1-branch Jul 25, 2025
32 of 34 checks passed
@kartben kartben deleted the backport-91294-to-v4.1-branch branch July 25, 2025 21:09
@github-project-automation github-project-automation bot moved this from Needs more info to Done in Backports Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Networking Backport Backport PR and backport failure issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants