mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +00:00
[posix] fix macOS build with PLATFORM_NETIF=1 (#5318)
This commit is contained in:
@@ -292,8 +292,8 @@ static void InitNetaskWithPrefixLength(struct in6_addr *address, uint8_t prefixL
|
||||
|
||||
static uint8_t NetmaskToPrefixLength(const struct sockaddr_in6 *netmask)
|
||||
{
|
||||
return otIp6PrefixMatch(static_cast<const otIp6Address *>(netmask->sin6_addr.s6_addr),
|
||||
static_cast<const otIp6Address *>(allOnes));
|
||||
return otIp6PrefixMatch(reinterpret_cast<const otIp6Address *>(netmask->sin6_addr.s6_addr),
|
||||
reinterpret_cast<const otIp6Address *>(allOnes));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user