Lines Matching refs:prefixlist
603 unsigned int GetPrefix(PIP_ADAPTER_PREFIX prefixlist, in GetPrefix() argument
609 while (prefixlist) { in GetPrefix()
611 if (prefixlist->Address.lpSockaddr == nullptr || in GetPrefix()
612 prefixlist->Address.lpSockaddr->sa_family != ip.family()) { in GetPrefix()
613 prefixlist = prefixlist->Next; in GetPrefix()
616 switch (prefixlist->Address.lpSockaddr->sa_family) { in GetPrefix()
619 reinterpret_cast<sockaddr_in*>(prefixlist->Address.lpSockaddr); in GetPrefix()
625 reinterpret_cast<sockaddr_in6*>(prefixlist->Address.lpSockaddr); in GetPrefix()
630 prefixlist = prefixlist->Next; in GetPrefix()
634 if (TruncateIP(ip, prefixlist->PrefixLength) == current_prefix && in GetPrefix()
635 prefixlist->PrefixLength > best_length) { in GetPrefix()
637 best_length = prefixlist->PrefixLength; in GetPrefix()
639 prefixlist = prefixlist->Next; in GetPrefix()
669 PIP_ADAPTER_PREFIX prefixlist = adapter_addrs->FirstPrefix; in CreateNetworks() local
711 int prefix_length = GetPrefix(prefixlist, ip, &prefix); in CreateNetworks()