systemd/test/fuzz/fuzz-unit-file
Matthieu Baerts (NGI0) 3f69070598 core/socket: allow MPTCP protocol
Multipath TCP (MPTCP), standardized in RFC8684 [1], is a TCP extension
that enables a TCP connection to use different paths. It allows a device
to make use of multiple interfaces at once to send and receive TCP
packets over a single MPTCP connection. MPTCP can aggregate the
bandwidth of multiple interfaces or prefer the one with the lowest
latency, it also allows a fail-over if one path is down, and the traffic
is seamlessly re-injected on other paths.

To benefit from MPTCP, both the client and the server have to support
it. Multipath TCP is a backward-compatible TCP extension that is enabled
by default on recent Linux distributions (Debian, Ubuntu, Redhat, ...).
Multipath TCP is included in the Linux kernel since version 5.6 [2]. To
use it on Linux, an application must explicitly enable it when creating
the socket:

  int sd = socket(AF_INET(6), SOCK_STREAM, IPPROTO_MPTCP);

No need to change anything else in the application.

This patch allows MPTCP protocol in the Socket unit configuration. So
now, a <unit>.socket can contain this to use MPTCP instead of TCP:

  [Socket]
  SocketProtocol=mptcp

MPTCP support has been allowed similarly to what has been already done
to allow SCTP: just one line in core/socket.c, a very simple addition
thanks to the flexible architecture already in place.

On top of that, IPPROTO_MPTCP has also been added in the list of allowed
protocols in two other places, and in the doc. It has also been added to
the missing_network.h file, for systems with an old libc -- note that it
was also required to include <netinet/in.h> in this file to avoid
redefinition errors.

Link: https://www.rfc-editor.org/rfc/rfc8684.html [1]
Link: https://www.mptcp.dev [2]
2024-06-12 00:14:08 +01:00
..
ask-password-console.path test: shorten sample names, drop numerical prefixes 2023-09-02 17:32:19 +03:00
binfmt_misc.automount man: update links to "API File Systems" 2024-05-28 14:48:56 +02:00
directives-all.service core: Add systemd.crash_action= kernel command line argument 2024-04-29 14:34:22 +02:00
dm-back\x2dslash.swap fuzz: rename long samples 2023-05-18 15:23:27 +02:00
empty.scope
github-19178
machine.slice
oss-fuzz-6884
oss-fuzz-6885
oss-fuzz-6886
oss-fuzz-6892
oss-fuzz-6897
oss-fuzz-6897-evverx
oss-fuzz-6908
oss-fuzz-6917
oss-fuzz-6977
oss-fuzz-6977-unminimized
oss-fuzz-7004
oss-fuzz-8064
oss-fuzz-8827
oss-fuzz-10007
oss-fuzz-11569
oss-fuzz-13125
oss-fuzz-32991
oss-fuzz-33270
oss-fuzz-33876
syslog.socket core/socket: allow MPTCP protocol 2024-06-12 00:14:08 +01:00
systemd-machined.service tree-wide: replace obsolete wiki links with systemd.io/manpages 2022-05-21 14:29:14 +02:00
systemd-resolved.service various: update links to more wiki pages 2024-05-28 14:48:53 +02:00
timers.target
tmpfiles-clean.timer test: shorten sample names, drop numerical prefixes 2023-09-02 17:32:19 +03:00
var-lib-machines.mount