zephyr/tests/net/udp
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
..
src net: socket: Implement SO_BINDTODEVICE socket option 2021-04-02 07:23:17 -04:00
CMakeLists.txt
prj.conf
testcase.yaml tests: net: Adjust the thread priorities 2020-11-20 12:57:29 +02:00