[posix] set sin6_scope_id / ipi6_ifindex for all transmits to link-local (#11555)

This will avoid the problem that scope id or ifindex remains 0 for a
link-local transmission. If 0, the OS cannot decide which network
interface to use based on address alone.
This commit is contained in:
Esko Dijk
2025-06-03 09:22:41 -07:00
committed by GitHub
parent 151cf324bc
commit 1804273276
2 changed files with 28 additions and 15 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ typedef struct utilsSocket
union
{
struct sockaddr_in mSockAddr4; ///< The IPv4 group sock address.
struct sockaddr_in6 mSockAddr6; ///< The IPv4 group sock address.
struct sockaddr_in6 mSockAddr6; ///< The IPv6 group sock address.
} mGroupAddr; ///< The group sock address for simulating radio.
} utilsSocket;