zephyr/subsys/net/lib/sockets
Tobias Frauenschläger dcc63120cf net: sockets: add support for SO_REUSEPORT
This commits adds support for the SO_REUSEPORT socket option.

The implementation follows the behavior of BSD and tries to also follow
the specific additional features of linux with the following
limitations:
* SO_REUSEADDR and SO_REUSEPORT are not "the same" for client sockets,
  as we do not have a trivial way so identify a socket as "client"
  during binding. To get the Linux behavior, one has to use SO_REUSEPORT
  with Zephyr
* No prevention of "port hijacking"
* No support for the load balancing stuff for incoming
  packets/connections

There is also a new Kconfig option to control this feature, which is
enabled by default if TCP or UDP is enabled.

Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
2023-09-20 08:56:31 +02:00
..
CMakeLists.txt net: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
getaddrinfo.c net: sockets: getaddrinfo: Minor refactoring 2023-02-21 15:02:35 +01:00
getnameinfo.c
Kconfig net: socket: Make the send timeout configurable 2023-08-16 10:30:33 +02:00
socket_dispatcher.c net: socket: Change SO_BINDTODEVICE to use interface name 2023-08-31 14:43:36 +02:00
socket_offload.c
socketpair.c net: socketpair: Fix use after free 2023-09-18 20:34:12 +02:00
sockets_can.c net: sockets: fix fcntl.h usage 2023-02-08 19:04:25 +09:00
sockets_internal.h
sockets_misc.c
sockets_net_mgmt.c net: sockets: fix fcntl.h usage 2023-02-08 19:04:25 +09:00
sockets_packet.c net: sockets: fix fcntl.h usage 2023-02-08 19:04:25 +09:00
sockets_select.c
sockets_tls.c net: lib: sockets: sockets_tls: prefix mbedtls error with 0x 2023-09-18 10:38:44 +01:00
sockets.c net: sockets: add support for SO_REUSEPORT 2023-09-20 08:56:31 +02:00