zephyr/subsys/net
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
..
conn_mgr net: conn_mgr: Add IPv4 and IPv6 tracking 2024-06-10 00:59:34 -07:00
ip net: tcp: Fix context leak during connect 2024-06-10 16:56:39 +03:00
l2 net: l2: ethernet: arp: Simplify ACD case 2024-06-10 00:59:28 -07:00
lib net: shell: Add IPv4 and IPv6 connectivity events 2024-06-10 00:59:34 -07:00
pkt_filter net: pkt_filter: Introduce additional hooks for pkt_filter 2023-07-10 09:27:47 +02:00
buf_simple.c net: buf_simple: Add support for 40 bit data type 2024-03-26 19:32:27 -04:00
buf.c net: buf: Disallow blocking allocation in syswq 2024-04-23 19:47:24 -04:00
CMakeLists.txt net: conn_mgr: Write documentation 2023-09-28 15:11:14 +02:00
hostname.c logging: net: update hostname 2024-01-17 14:42:58 +01:00
Kconfig net: Add Kconfig for net buf alignment 2023-12-14 09:29:47 +01:00
Kconfig.hostname net: add set hostname function 2024-01-17 14:42:58 +01:00
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net