zephyr/subsys/net/lib
Marcin Niestroj 900137ef32 net: sockets: tls: prevent sending fragmented datagrams with sendmsg()
Fragmented data passed to sendmsg() should be sent as a single datagram in
case of datagram sockets (i.e. DTLS connection). Right now that is not
happening now, as each fragment is sent separately, which works fine only
for stream sockets.

There is no mbedTLS API for 'gather' write at this moment. This means that
implementing sendmsg() would require allocating contiguous memory area at
Zephyr TLS socket level and copying all data fragments before passing to
mbedTLS library. While this might be a good option for future, let's just
check if data passed to sendmsg() API consists of a single memory region
and can be sent using single send request. Return EMSGSIZE error if there
are more then one data fragments.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2022-05-25 14:20:09 +02:00
..
capture subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
coap subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
config subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
conn_mgr subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dns subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
http subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
lwm2m net: lib: lwm2m: Cancel firmware DOWNLOADED state with NULL byte 2022-05-23 10:17:52 +02:00
mqtt subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
openthread net: openthread: add support for PSA MAC keys 2022-05-13 13:27:04 +02:00
sntp subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
sockets net: sockets: tls: prevent sending fragmented datagrams with sendmsg() 2022-05-25 14:20:09 +02:00
socks subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
tftp subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
tls_credentials subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
utils subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
websocket subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
CMakeLists.txt net: capture: Add support for network packet capturing 2021-04-02 07:24:06 -04:00
Kconfig net: capture: Add support for network packet capturing 2021-04-02 07:24:06 -04:00