zephyr/subsys/net
Sjors Hettinga e3b8fad9fa net: tcp: Fix accidental removal of data from send_data
In the function net_tcp_queue_data. When an -ENOBUFS by
tcp_send_queued_data is returned, it throws away the whole block of size
len from the send_data. If the len is > MSS, it could happen that the
first section is transmitted, but at the second an -ENOBUFS occurs.
In that case the data is transmitted, but later on removed from the
send_data.

To circumvent this problem, check if the len + unacked_len is smaller
then the send_data_total. If so, the data can safely be removed from
send_data. Otherwise, just pretend the transmission went OK. The
acknowledgment and retransmit path will eventually take care of it.

Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com>
2022-06-07 18:55:44 +02:00
..
ip net: tcp: Fix accidental removal of data from send_data 2022-06-07 18:55:44 +02:00
l2 net: ethernet: Add Kconfig option to forward unrecognized EtherType frames 2022-05-27 15:40:29 -07:00
lib net: lwm2m: Composite Observation refactor 2022-06-06 12:06:43 +02:00
pkt_filter subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
CMakeLists.txt
Kconfig net: remove superfluous default n for boolean 2022-04-19 11:49:27 +02:00
Kconfig.hostname
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net
buf.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
hostname.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00