zephyr/subsys/net/ip
Jukka Rissanen bd4c0b746c net: acd: Avoid removing auto IPv4 address twice
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 <jukka.rissanen@nordicsemi.no>
2025-06-11 10:26:56 -07:00
..
6lo_private.h
6lo.c net: ip: 6lo: Fix undefined behavior reported by UBSAN 2025-06-03 21:32:54 -07:00
6lo.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt
connection.c net: sockets: packet: Make it possible to receive packets when unbound 2025-04-30 16:26:16 +02:00
connection.h net: connection: Make it possible to update local address 2025-04-30 16:26:16 +02:00
icmp.c
icmpv4.c
icmpv4.h
icmpv6.c
icmpv6.h
igmp.c net: ip: igmp: Ensure IGMP APIs work with offloaded interfaces 2025-05-09 18:00:14 +02:00
igmp.h
ipv4_acd.c net: l2: ethernet: arp: explicit error codes 2025-04-24 22:58:51 +02:00
ipv4_autoconf.c net: acd: Avoid removing auto IPv4 address twice 2025-06-11 10:26:56 -07:00
ipv4_fragment.c net: ip: resolve NET_IPV4_FRAGMENT build warning 2025-05-01 18:17:46 +02:00
ipv4.c
ipv4.h
ipv6_fragment.c
ipv6_mld.c net: ip: mld: Ensure MLD APIs work with offloaded interfaces 2025-05-09 18:00:14 +02:00
ipv6_nbr.c
ipv6_pe.c
ipv6.c net: ipv6: Make sure we do not access link address past array length 2025-05-28 10:05:21 +02:00
ipv6.h
iterables_net_pkt_alloc_stats.ld
Kconfig
Kconfig.debug
Kconfig.ipv4
Kconfig.ipv6
Kconfig.mgmt
Kconfig.stack
Kconfig.stats
Kconfig.tcp
nbr.c
nbr.h
net_context.c net: context: Verify if CONFIG_NET_SOCKETS_PACKET_DGRAM is enabled 2025-05-28 15:33:24 +02:00
net_core.c net: dsa: introduce new DSA framework 2025-04-24 01:26:46 +02:00
net_if.c net: if: Do not start ACD for localhost or point2point links 2025-06-11 10:26:56 -07:00
net_mgmt.c
net_pkt.c net: ip: net_pkt: conditional net_if_get_by_iface 2025-05-22 04:53:08 +02:00
net_private.h
net_stats.c
net_stats.h
net_tc_mapping.h
net_tc.c
net_timeout.c
packet_socket.c net: dsa: make current DSA core driver obsolete 2025-04-24 01:26:46 +02:00
packet_socket.h
pmtu.c
pmtu.h
promiscuous.c
route.c
route.h
tcp_internal.h
tcp_private.h net: tcp: Change SYN FIN to use send_data_timer 2025-06-02 13:30:19 +02:00
tcp.c net: tcp: Change SYN FIN to use send_data_timer 2025-06-02 13:30:19 +02:00
tcp.h
tp_priv.h
tp.c
tp.h
udp_internal.h
udp.c
utils.c