tests|scripts/net: Change native_posix references to native_sim

* As we are replacing native_posix with native_sim, let's
  refer to native_sim instead of native_posix in the comments
  of why we have 1 extra interface.

* scripts/net/run-sample-tests.sh builds for native_sim now,
  not native_posix => let's fix it

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-03-18 14:37:21 +01:00 committed by Alberto Escolar
parent 46193f48f6
commit f532937e92
4 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ User can see what samples are supported like this:
$ZEPHYR_BASE/scripts/net/run-sample-tests.sh --scan $ZEPHYR_BASE/scripts/net/run-sample-tests.sh --scan
The Docker container and a corresponding 'net-tools0' Docker network is started The Docker container and a corresponding 'net-tools0' Docker network is started
by the script, as well as Zephyr using native_posix board. IP addresses are by the script, as well as Zephyr using native_sim board. IP addresses are
assigned to the Docker network, which is a Linux network bridge interface. assigned to the Docker network, which is a Linux network bridge interface.
The default IP addresses are: The default IP addresses are:

View file

@ -72,7 +72,7 @@ static struct in_addr in4addr_dst = { { { 192, 0, 2, 2 } } };
static struct in_addr in4addr_my2 = { { { 192, 0, 42, 1 } } }; static struct in_addr in4addr_my2 = { { { 192, 0, 42, 1 } } };
static struct in_addr in4addr_dst2 = { { { 192, 0, 42, 2 } } }; static struct in_addr in4addr_dst2 = { { { 192, 0, 42, 2 } } };
/* Keep track of all ethernet interfaces. For native_posix board, we need /* Keep track of all ethernet interfaces. For native_sim board, we need
* to increase the count as it has one extra network interface defined in * to increase the count as it has one extra network interface defined in
* eth_native_posix driver. * eth_native_posix driver.
*/ */

View file

@ -297,7 +297,7 @@ static void iface_cb(struct net_if *iface, void *user_data)
const struct ethernet_api *api = const struct ethernet_api *api =
net_if_get_device(iface)->api; net_if_get_device(iface)->api;
/* As native_posix board will introduce another ethernet /* As native_sim board will introduce another ethernet
* interface, make sure that we only use our own in this test. * interface, make sure that we only use our own in this test.
*/ */
if (api->get_capabilities == if (api->get_capabilities ==

View file

@ -178,7 +178,7 @@ static void iface_cb(struct net_if *iface, void *user_data)
const struct ethernet_api *api = const struct ethernet_api *api =
net_if_get_device(iface)->api; net_if_get_device(iface)->api;
/* As native_posix board will introduce another ethernet /* As native_sim board will introduce another ethernet
* interface, make sure that we only use our own in this test. * interface, make sure that we only use our own in this test.
*/ */
if (api->get_capabilities == if (api->get_capabilities ==