NetIPv6_GetAddrMatchingLen
Description
Compute the number of identical most significant bits of two IPv6 addresses.
Files
net_ipv6.h/net_ipv6.c
Prototype
CPU_INT08U NetIPv6_GetAddrMatchingLen(NET_IPv6_ADDR *p_addr_1, NET_IPv6_ADDR *p_addr_2);
Arguments
p_addr_1
First IPv6 address for comparison.
p_addr_2
Second IPv6 address for comparison.
Returned Value
Number of matching bits, if any.
0, otherwise.
Required Configuration
None.
Notes / Warnings
None.