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> |
||
|---|---|---|
| .. | ||
| 6lo_private.h | ||
| 6lo.c | ||
| 6lo.h | ||
| canbus_socket.c | ||
| canbus_socket.h | ||
| CMakeLists.txt | ||
| connection.c | ||
| connection.h | ||
| icmp.c | ||
| icmpv4.c | ||
| icmpv4.h | ||
| icmpv6.c | ||
| icmpv6.h | ||
| igmp.c | ||
| igmp.h | ||
| ipv4_acd.c | ||
| ipv4_autoconf.c | ||
| ipv4_fragment.c | ||
| ipv4.c | ||
| ipv4.h | ||
| ipv6_fragment.c | ||
| ipv6_mld.c | ||
| ipv6_nbr.c | ||
| ipv6_pe.c | ||
| ipv6.c | ||
| 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_core.c | ||
| net_if.c | ||
| net_mgmt.c | ||
| net_pkt.c | ||
| net_private.h | ||
| net_stats.c | ||
| net_stats.h | ||
| net_tc_mapping.h | ||
| net_tc.c | ||
| net_timeout.c | ||
| packet_socket.c | ||
| packet_socket.h | ||
| pmtu.c | ||
| pmtu.h | ||
| promiscuous.c | ||
| route.c | ||
| route.h | ||
| tcp_internal.h | ||
| tcp_private.h | ||
| tcp.c | ||
| tcp.h | ||
| tp_priv.h | ||
| tp.c | ||
| tp.h | ||
| udp_internal.h | ||
| udp.c | ||
| utils.c | ||