mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 18:57:47 +00:00
[posix] fix netif use of IPv6 Prefix Match method (#5305)
This commit is contained in:
@@ -292,7 +292,8 @@ static void InitNetaskWithPrefixLength(struct in6_addr *address, uint8_t prefixL
|
||||
|
||||
static uint8_t NetmaskToPrefixLength(const struct sockaddr_in6 *netmask)
|
||||
{
|
||||
return ot::Ip6::Address::PrefixMatch(netmask->sin6_addr.s6_addr, allOnes, 128);
|
||||
return otIp6PrefixMatch(static_cast<const otIp6Address *>(netmask->sin6_addr.s6_addr),
|
||||
static_cast<const otIp6Address *>(allOnes));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user