Lines Matching refs:best
324 unsigned int i, j, max, best, border = 0; in get_ipv6_network() local
367 for (i = best = 0, max = 2; buf[i]; i++) { in get_ipv6_network()
373 best = i, max = j; in get_ipv6_network()
377 size_t best_end = best + max - 1; in get_ipv6_network()
379 if (max > 2 && best < border) { in get_ipv6_network()
382 if (best == 0 && best_end >= border) { in get_ipv6_network()
386 } else if (best == 0 && best_end < border) { in get_ipv6_network()
391 } else if (best > 0 && best_end >= border) { in get_ipv6_network()
396 ret[best] = ':'; in get_ipv6_network()
397 ret[best + 1] = '\0'; in get_ipv6_network()
400 ret[best] = ':'; in get_ipv6_network()
401 memmove(p_ret + best + 1, p_ret + best_end, in get_ipv6_network()
402 border - best + 1); in get_ipv6_network()