apache / apache/nuttx

Incomplete TCP Urgent OOB Data Support

Open
#2,327 0 comments 0 reactions 0 assignees View on GitHub
Area: Networking State: Missing logic
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

net/tcp/tcp_input.c contains data to detect the presence of urgent OOB data in a packet. It will also save the a pointer to the urgent data and the size of the urgent data.

However, there is no logic in place to either send or receive urgent data. In order to fully support urgent data we would need to:

1. Add logic in send() to handle the MSG_OOB flag.
2. If the MSB_OOB flag is set, send() should buffer the urgent data in separate write buffers.

and similarly,

3. On receipt of urgent data, the received data should be buffered in read-ahead buffers separate from the "normal" TCP data
4. Add logic in recv() to handle the MSG_OOB flag.
5. If the MSB_OOB flag is set, recv() should take the urgent data from the special read-ahead buffer (or wait for urgent data to arrive).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.