Lines Matching refs:srclen
118 int in4_pton(const char *src, int srclen, in in4_pton() argument
129 if (srclen < 0) in in4_pton()
130 srclen = strlen(src); in in4_pton()
136 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in4_pton()
161 srclen--; in in4_pton()
184 int in6_pton(const char *src, int srclen, in in6_pton() argument
200 if (srclen < 0) in in6_pton()
201 srclen = strlen(src); in in6_pton()
206 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in6_pton()
249 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton()
278 srclen--; in in6_pton()
305 int srclen = strlen(src); in inet4_pton() local
307 if (srclen > INET_ADDRSTRLEN) in inet4_pton()
310 if (in4_pton(src, srclen, (u8 *)&addr4->sin_addr.s_addr, in inet4_pton()
325 int srclen = strlen(src); in inet6_pton() local
327 if (srclen > INET6_ADDRSTRLEN) in inet6_pton()
330 if (in6_pton(src, srclen, (u8 *)&addr6->sin6_addr.s6_addr, in inet6_pton()
335 src + srclen != scope_delim && *scope_delim == '%') { in inet6_pton()
339 src + srclen - scope_delim - 1); in inet6_pton()