Searched refs:netmaskToPrefixLength (Results 1 – 1 of 1) sorted by relevance
859 int netmaskToPrefixLength(const uint8_t *buf, size_t buflen) { in netmaskToPrefixLength() function885 int netmaskToPrefixLength(const T *p) { in netmaskToPrefixLength() function886 return netmaskToPrefixLength(reinterpret_cast<const uint8_t*>(p), sizeof(T)); in netmaskToPrefixLength()931 EXPECT_EQ(prefixLength, netmaskToPrefixLength(&nm->sin_addr)); in interfaceHasAddress()932 return (prefixLength == netmaskToPrefixLength(&nm->sin_addr)); in interfaceHasAddress()945 EXPECT_EQ(prefixLength, netmaskToPrefixLength(&nm->sin6_addr)); in interfaceHasAddress()946 return (prefixLength == netmaskToPrefixLength(&nm->sin6_addr)); in interfaceHasAddress()