zephyr/samples/net/sockets/echo_server/src
Marcin Niestroj a15cc704e0 samples: net: echo_server: set IPV6_V6ONLY
This sample assumes that two separate sockets can be bound on IPv4 and
IPv6. On Linux (via Native Simulator Offloaded Sockets) this is possible
when there is no IPv4 to IPv6 mapping. Same can be true to other offloaded
sockets.

CONFIG_NET_IPV4_MAPPING_TO_IPV6 is disabled for this sample, so IPv4 to
IPv6 mapping is disabled for Zephyr native IPv6 layer. For offloaded
sockets this option does not define whether mapping is enabled or not, so
try to unconditionally (and without error checking) disable it.

This patch fixes compatibility with NSOS, since two separate sockets can be
bound on the same address and port, one for IPv4 and second for IPv6.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-05-17 11:12:43 +02:00
..
ca.der
certificate.h
common.h
dummy_psk.h
echo-apps-cert.der
echo-apps-key.der
echo-server.c
server_privkey.der
server.der
tcp.c samples: net: echo_server: set IPV6_V6ONLY 2024-05-17 11:12:43 +02:00
tunnel.c samples: net: echo-server: Make sure to attach to correct tunnel 2024-04-04 17:02:11 +02:00
udp.c samples: net: echo_server: set IPV6_V6ONLY 2024-05-17 11:12:43 +02:00
usb.c
vlan.c samples: net: echo_server: Rework the VLAN support 2024-03-28 09:41:38 +00:00