asterinas/book/src/kernel/linux-compatibility/syscall-flag-coverage/networking-and-sockets/README.md

2.1 KiB

Networking & Sockets

Socket Creation

socket

Supported functionality in SCML:

{{#include socket.scml}}

For more information, see the man page.

socketpair

Supported functionality in SCML:

{{#include socketpair.scml}}

For more information, see the man page.

Socket Setup

bind

Supported functionality in SCML:

{{#include bind.scml}}

For more information, see the man page.

connect

Supported functionality in SCML:

{{#include connect.scml}}

For more information, see the man page.

accept and accept4

Supported functionality in SCML:

{{#include accept_and_accept4.scml}}

For more information, see the man page.

Socket Communication

sendto, sendmsg and sendmmsg

Supported functionality in SCML:

{{#include sendto_and_sendmsg.scml}}

Unsupported flags:

  • MSG_CONFIRM
  • MSG_DONTROUTE
  • MSG_DONTWAIT
  • MSG_EOR
  • MSG_MORE
  • MSG_CONFIRM
  • MSG_NOSIGNAL
  • MSG_OOB
  • MSG_FASTOPEN

For more information, see the man page.

recvfrom and recvmsg

Supported functionality in SCML:

{{#include recvfrom_and_recvmsg.scml}}

Partially-supported flags:

  • MSG_PEEK because it is only supported in netlink socket

For more information, see the man page.

Socket Options

getsockopt and setsockopt

Supported functionality in SCML:

{{#include getsockopt_and_setsockopt.scml}}

For more information, see the man page.