zephyr/samples/net
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
..
capture samples: net: capture: Add a way to capture some cooked data 2024-04-04 17:02:11 +02:00
cellular_modem samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
cloud samples: use appropriate sys_randX_get() 2024-04-05 10:57:45 -05:00
common license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
dhcpv4_client samples: net: Change samples to support new IPv4 netmask setting API 2024-03-03 18:58:29 +01:00
dns_resolve samples: net: Change samples to support new IPv4 netmask setting API 2024-03-03 18:58:29 +01:00
dsa dts: nxp: Convert ENET DT default to new binding. 2024-04-18 11:18:31 +02:00
gptp drivers: nxp_enet: Deprecate ETH_MCUX 2024-04-18 11:18:31 +02:00
gsm_modem samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
ipv4_autoconf samples/net several: Use hwmv2 native targets identifiers 2024-03-15 16:13:12 +01:00
lldp samples: net: lldp: Fix the VLAN support 2024-03-28 09:41:38 +00:00
lwm2m_client net: lwm2m: Add offset to post-write callback 2024-05-15 14:58:15 +02:00
mdns_responder Network: L2: remove IPSP 2024-04-11 12:48:50 +02:00
mqtt_publisher Network: L2: remove IPSP 2024-04-11 12:48:50 +02:00
mqtt_sn_publisher samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
openthread/coprocessor net: Add more specific dependencies for specialized samples 2024-03-06 09:11:51 +01:00
promiscuous_mode samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
sockets samples: net: echo_server: set IPV6_V6ONLY 2024-05-17 11:12:43 +02:00
stats docs: networing: Replace references to native_posix w native_sim 2023-11-15 10:03:17 +01:00
syslog_net log: net: move log_backend_net_get() to header 2024-03-08 15:18:30 +00:00
telnet Network: L2: remove IPSP 2024-04-11 12:48:50 +02:00
tftp_client samples: net: tftp_client: do not allow native_posix 2024-04-17 11:53:22 -07:00
virtual samples: net: Change samples to support new IPv4 netmask setting API 2024-03-03 18:58:29 +01:00
vlan samples: net: vlan: Support all three network interfaces 2024-04-01 12:09:53 -05:00
wifi samples: wifi: use soc conf and overlay for espressif boards 2024-05-07 15:12:33 -05:00
wpan_serial samples: use appropriate sys_randX_get() 2024-04-05 10:57:45 -05:00
wpanusb hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
zperf drivers: nxp_enet: Deprecate ETH_MCUX 2024-04-18 11:18:31 +02:00
net.rst doc: add labels to net sample docs for linking 2017-04-04 19:52:06 +00:00