zephyr/subsys/net/lib/sockets
Robert Lubos 814fb71bf3 net: socket: Implement SO_BINDTODEVICE socket option
Implement SO_BINDTODEVICE socket option which allows to bind an open
socket to a particular network interface. Once bound, the socket will
only send and receive packets through that interface.

For the TX path, simply avoid overwriting the interface pointer by
net_context_bind() in case it's already bound to an interface with an
option. For the RX path, drop the packet in case the connection handler
detects that the net_context associated with that connection is bound to
a different interface that the packet origin interface.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2021-04-02 07:23:17 -04:00
..
CMakeLists.txt net: socket: packet: using pckt sckt for passing the PPP dialup data 2021-04-01 09:43:56 +03:00
getaddrinfo.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
getnameinfo.c
Kconfig net: socket: packet: using pckt sckt for passing the PPP dialup data 2021-04-01 09:43:56 +03:00
socket_offload.c
socketpair.c net: socketpair: Check NULL value 2020-08-14 09:47:51 -07:00
sockets_can.c net: socket send timeout option 2021-02-24 14:16:33 +02:00
sockets_internal.h net: sockets: Provide close method for packet sockets 2021-03-15 15:17:52 +02:00
sockets_misc.c
sockets_net_mgmt.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sockets_packet.c net: socket: packet: using pckt sckt for passing the PPP dialup data 2021-04-01 09:43:56 +03:00
sockets_select.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sockets_tls.c net: socket: dtls: add sockopt to set & get dtls handshake timeout 2021-04-01 20:02:59 +03:00
sockets.c net: socket: Implement SO_BINDTODEVICE socket option 2021-04-02 07:23:17 -04:00