zephyr/subsys/net
Robert Lubos a0f0e55668 net: tcp: Fix FIN with data handling
In case FIN packet included data bytes, Zephyr would ignore the
data. It wasn't passed to the application, and it wasn't considered
when bumping the ACK counter. This ended out in connection timing out,
instead of being properly terminated.

Fix this, by refactoring FIN processing in TCP_ESTABLISHED state.
Instead of handling FIN/FIN,ACK/FIN,ACK,PSH cases separately, have a
common handler when FIN flag is present, and when ACK flag is present
along with FIN. When FIN is present, take any potentially incoming data
into account.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-04-15 12:51:52 +02:00
..
conn_mgr net: conn_mgr: set a thread name 2024-03-02 15:03:27 +01:00
ip net: tcp: Fix FIN with data handling 2024-04-15 12:51:52 +02:00
l2 net: vlan: Fix net_eth_get_vlan_tag() to check correct interface 2024-04-12 11:54:33 +02:00
lib net: lwm2m: Allow CoAP block size to be changed 2024-04-12 09:14:36 -04:00
pkt_filter net: pkt_filter: Introduce additional hooks for pkt_filter 2023-07-10 09:27:47 +02:00
buf.c net: buf: Include user data when cloning 2024-03-29 16:00:39 -05:00
buf_simple.c net: buf_simple: Add support for 40 bit data type 2024-03-26 19:32:27 -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: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.template.log_config.net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00