Lines Matching +full:has +full:- +full:in6
7 * SPDX-License-Identifier: ISC
50 * or -1 if some failure occurred (check errno). ENOENT means it was
65 return (-1); in inet_net_pton()
77 * or -1 if some failure occurred (check errno). ENOENT means it was
80 * network byte order assumed. this means 192.5.5.240/28 has
106 n = strchr(xdigits, ch) - xdigits; in inet_net_pton_ipv4()
113 if (size-- == 0) in inet_net_pton_ipv4()
120 if (size-- == 0) in inet_net_pton_ipv4()
129 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4()
137 if (size-- == 0) in inet_net_pton_ipv4()
151 bits = -1; in inet_net_pton_ipv4()
158 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4()
178 if (bits == -1) { in inet_net_pton_ipv4()
190 if (bits < ((dst - odst) * 8)) in inet_net_pton_ipv4()
191 bits = (dst - odst) * 8; in inet_net_pton_ipv4()
194 while (bits > ((dst - odst) * 8)) { in inet_net_pton_ipv4()
195 if (size-- == 0) in inet_net_pton_ipv4()
203 return (-1); in inet_net_pton_ipv4()
207 return (-1); in inet_net_pton_ipv4()
214 struct in6_addr in6; in inet_net_pton_ipv6() local
224 return (-1); in inet_net_pton_ipv6()
231 ret = inet_pton(AF_INET6, buf, &in6); in inet_net_pton_ipv6()
233 return (-1); in inet_net_pton_ipv6()
241 return (-1); in inet_net_pton_ipv6()
248 return (-1); in inet_net_pton_ipv6()
250 memcpy(dst, &in6.s6_addr, bytes); in inet_net_pton_ipv6()