zephyr/subsys/net/ip
Daniel Nejezchleb d6ed91795d net: tcp: Fix context leak during connect
Replaced tcp_out() with tcp_out_ext() when sending
SYN during tcp connect, so we can intercept error value,
beacuse in such case the packet would not be sent at all
and the stack would not trigger any mechanism to flush
this context so it ends up leaking. These scenarios can
arise when the underlaying interface is not properly
configured or is disconnected. The conn is marked to be
closed and is closed before exiting tcp_in().
Since we can now identify this case we can also exit
early in the net_tcp_connect() function and not wait
for any timeout.

Signed-off-by: Daniel Nejezchleb <dnejezchleb@hwg.cz>
2024-06-10 16:56:39 +03:00
..
6lo_private.h
6lo.c
6lo.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt net: ipv4: Implement IPv4 address conflict detection 2024-06-10 00:59:28 -07:00
connection.c net: conn: fix supplicant l2 recv unexpected frame 2024-06-03 09:48:32 +02:00
connection.h net: conn: Add internal function for update connection 2024-03-14 11:08:59 -05:00
icmp.c net: use appropriate sys_randX_get() 2024-04-05 12:28:46 +02:00
icmpv4.c
icmpv4.h
icmpv6.c
icmpv6.h
igmp.c net: igmp: Fix double unref of igmp packet 2024-03-15 13:35:16 +01:00
ipv4_acd.c net: ipv4: Implement IPv4 address conflict detection 2024-06-10 00:59:28 -07:00
ipv4_autoconf.c net: ipv4: autoconf: Integrate with the ACD module 2024-06-10 00:59:28 -07:00
ipv4_fragment.c net: use appropriate sys_randX_get() 2024-04-05 12:28:46 +02:00
ipv4.c net: ipv4: Implement IPv4 address conflict detection 2024-06-10 00:59:28 -07:00
ipv4.h net: ipv4: Implement IPv4 address conflict detection 2024-06-10 00:59:28 -07:00
ipv6_fragment.c
ipv6_mld.c net: ipv6: mld: use proper MLDv2 modes 2024-05-10 11:44:50 +02:00
ipv6_nbr.c net: ipv6: Initial support for privacy extension 2024-05-06 22:50:18 +01:00
ipv6_pe.c convert: use k_uptime_seconds 2024-05-14 09:32:01 +02:00
ipv6.c net: ipv6: Fix DAD conflict detection 2024-05-20 14:26:24 +03:00
ipv6.h net: ipv6: Initial support for privacy extension 2024-05-06 22:50:18 +01:00
Kconfig net: ipv6: mld: add option to include multicast routes in MLDv2 reports 2024-05-06 22:50:01 +01:00
Kconfig.debug
Kconfig.ipv4 net: ipv4: autoconf: Integrate with the ACD module 2024-06-10 00:59:28 -07:00
Kconfig.ipv6 modules: mbedtls: remove the default enabling of features 2024-05-31 16:33:06 -05:00
Kconfig.mgmt hostap: Increase the stack size for net_mgmt 2024-05-06 14:55:09 +01:00
Kconfig.stack
Kconfig.stats
Kconfig.tcp net: tcp: use PSA for SHA256 when BUILD_WITH_TFM 2024-05-09 10:27:30 +02:00
nbr.c net/ip: Removing useless extra data capability in neighbors 2024-03-01 15:33:53 +01:00
nbr.h net/ip: Removing useless extra data capability in neighbors 2024-03-01 15:33:53 +01:00
net_context.c net: context: Do not check our own ports 2024-05-14 18:19:54 -04:00
net_core.c net: ipv4: autoconf: Integrate with the ACD module 2024-06-10 00:59:28 -07:00
net_if.c net: ipv4: autoconf: Integrate with the ACD module 2024-06-10 00:59:28 -07:00
net_mgmt.c net: mgmt: Handle loops in the linked list 2024-03-08 09:35:04 +01:00
net_pkt.c net: Do not directly use net_buf size field 2024-05-06 17:31:09 +01:00
net_private.h net: Start socket service thread by net core init 2024-06-03 09:49:01 +02:00
net_stats.c
net_stats.h
net_tc_mapping.h
net_tc.c net: ip: Allow traffic class thread priority customization 2024-02-26 12:11:19 +01:00
net_timeout.c
packet_socket.c
packet_socket.h
promiscuous.c
route.c net: ipv6: mld: use proper MLDv2 modes 2024-05-10 11:44:50 +02:00
route.h net: ipv6: add multiple interfaces to multicast routing entry 2024-04-17 14:39:35 +02:00
tcp_internal.h net: context: Add helpers for figuring out local endpoint address 2024-05-06 22:50:18 +01:00
tcp_private.h net: Add ref counting to net_if_addr struct 2024-05-06 22:50:18 +01:00
tcp.c net: tcp: Fix context leak during connect 2024-06-10 16:56:39 +03:00
tcp.h
tp_priv.h
tp.c
tp.h
udp_internal.h
udp.c
utils.c build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00