Lines Matching refs:i
73 int i; in inet_ntop6() local
81 for (i = 0; i < (int) sizeof(struct in6_addr); i++) in inet_ntop6()
82 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6()
87 for (i = 0; i < (int) ARRAY_SIZE(words); i++) { in inet_ntop6()
88 if (words[i] == 0) { in inet_ntop6()
90 cur.base = i, cur.len = 1; in inet_ntop6()
112 for (i = 0; i < (int) ARRAY_SIZE(words); i++) { in inet_ntop6()
114 if (best.base != -1 && i >= best.base && in inet_ntop6()
115 i < (best.base + best.len)) { in inet_ntop6()
116 if (i == best.base) in inet_ntop6()
121 if (i != 0) in inet_ntop6()
124 if (i == 6 && best.base == 0 && (best.len == 6 || in inet_ntop6()
133 tp += snprintf(tp, sizeof tmp - (tp - tmp), "%x", words[i]); in inet_ntop6()
284 int i; in inet_pton6() local
288 for (i = 1; i <= n; i++) { in inet_pton6()
289 endp[- i] = colonp[n - i]; in inet_pton6()
290 colonp[n - i] = 0; in inet_pton6()