zephyr/subsys/net/ip
Robert Lubos 8287e56fa3 net: context: Verify that laddr was set before use in connect
In previous patch fixing this issue, I've missed the fact that offloaded
drivers would not set the context->local address, which resulted in a
regression, where the previously introduced assert would hit in
offloaded cases. Not setting laddr is not a problem in case of
offloading, as it's only used in net_tcp_connect() which would not be
reached in this case.

Therefore I propose to remove previous patch to get rid of regression.
As an alternative fix, verify the laddr just before use, so that it is
only checked when native net stack is in use.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-06-12 14:03:04 -04:00
..
6lo_private.h
6lo.c
6lo.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt
connection.c
connection.h
dhcpv4.c net: DHCPv4: Add option callback 2023-05-22 15:25:40 +02:00
dhcpv4.h net: DHCPv4: Add option callback 2023-05-22 15:25:40 +02:00
icmpv4.c
icmpv4.h
icmpv6.c
icmpv6.h
igmp.c
ipv4_autoconf_internal.h
ipv4_autoconf.c
ipv4_fragment.c
ipv4.c
ipv4.h
ipv6_fragment.c
ipv6_mld.c
ipv6_nbr.c
ipv6.c
ipv6.h
Kconfig net: allow UDP missing checksum by default 2023-05-23 22:09:47 +02:00
Kconfig.debug
Kconfig.ipv4 net: DHCPv4: Add option callback 2023-05-22 15:25:40 +02:00
Kconfig.ipv6
Kconfig.mgmt
Kconfig.stack
Kconfig.stats
nbr.c
nbr.h
net_context.c net: context: Verify that laddr was set before use in connect 2023-06-12 14:03:04 -04:00
net_core.c
net_if.c
net_mgmt.c
net_pkt.c
net_private.h
net_shell.c
net_shell.h
net_stats.c
net_stats.h
net_tc_mapping.h
net_tc.c
net_timeout.c
packet_socket.c
packet_socket.h
promiscuous.c
route.c
route.h
tcp_internal.h
tcp_private.h
tcp.c net: tcp: Fix possible double TCP context dereferencing 2023-06-06 11:11:22 -04:00
tcp.h
tp_priv.h
tp.c
tp.h
trickle.c
udp_internal.h
udp.c
utils.c