Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendmsg(3p) and recvmsg(3p) #1569

Open
Tracked by #29
mkroening opened this issue Jan 22, 2025 · 0 comments
Open
Tracked by #29

sendmsg(3p) and recvmsg(3p) #1569

mkroening opened this issue Jan 22, 2025 · 0 comments
Assignees

Comments

@mkroening
Copy link
Member

mkroening commented Jan 22, 2025

The kernel should provide system calls corresponding to sendmsg(3p) and recvmsg(3p), which are basic operations of the POSIX socket interface.

These functions are usually used with UDP sockets. They are prominently used in QUIC.

If I understand correctly, we should be able to implement send(3p) on top of sendto(3p) on top of sendmsg(3p) and recv(3p) on top of recvfrom(3p) on top of recvmsg(3p).

For struct msghdr, see <sys/socket.h>.

Our newlib has stubbed these functions for the mean time:

IETF RFCs that list these functions as basic operations

Respective functions in the Rust ecosystem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants