mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[simulation] add IPv6 loopback address support (#12828)
This commit adds support for IPv6 loopback address (::1) in the simulation platform. When the local interface is set to the IPv6 loopback address, it uses the interface-local multicast group (ff01::116) instead of the link-local group (ff02::116) for node-to-node communication. It also ensures that the `sin6_scope_id` is correctly set for the loopback address in the transmission socket.
This commit is contained in:
@@ -64,6 +64,7 @@ test_ipv6()
|
||||
|
||||
OT_NODE_TYPE=rcp OT_SIMULATION_LOCAL_HOST=$IFACE_NAME $EXPECT_TEST
|
||||
OT_NODE_TYPE=rcp OT_SIMULATION_LOCAL_HOST=$IP6ADDR $EXPECT_TEST
|
||||
OT_NODE_TYPE=rcp OT_SIMULATION_LOCAL_HOST=::1 $EXPECT_TEST
|
||||
}
|
||||
|
||||
test_ipv4()
|
||||
|
||||
Reference in New Issue
Block a user