/resolv/ |
A D | ns_print.c | 101 int len, x; in libresolv_hidden_def() local 119 name[len] == '\0')) && name[len - 1] != '.') { in libresolv_hidden_def() 122 len++; in libresolv_hidden_def() 162 if (len == 0) in libresolv_hidden_def() 164 rdata += len; in libresolv_hidden_def() 173 if (len == 0) in libresolv_hidden_def() 175 rdata += len; in libresolv_hidden_def() 285 if (len == 0) in libresolv_hidden_def() 287 rdata += len; in libresolv_hidden_def() 354 if (len < 0) in libresolv_hidden_def() [all …]
|
A D | inet_ntop.c | 109 struct { int base, len; } best, cur; in inet_ntop6() member 123 best.len = 0; in inet_ntop6() 124 cur.len = 0; in inet_ntop6() 128 cur.base = i, cur.len = 1; in inet_ntop6() 130 cur.len++; in inet_ntop6() 133 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 140 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 143 if (best.base != -1 && best.len < 2) in inet_ntop6() 153 i < (best.base + best.len)) { in inet_ntop6() 163 (best.len == 6 || (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6() [all …]
|
A D | ns_name_unpack.c | 32 int n, len, checked; in ___ns_name_unpack() local 34 len = -1; in ___ns_name_unpack() 77 if (len < 0) in ___ns_name_unpack() 78 len = srcp - src + 1; in ___ns_name_unpack() 105 if (len < 0) in ___ns_name_unpack() 106 len = srcp - src; in ___ns_name_unpack() 107 return len; in ___ns_name_unpack()
|
A D | nsap_addr.c | 37 u_int len = 0; in inet_nsap_addr() local 39 while ((c = *ascii++) != '\0' && len < (u_int)maxlen) { in inet_nsap_addr() 52 len++; in inet_nsap_addr() 62 return (len); in inet_nsap_addr()
|
A D | ns_ttl.c | 151 size_t len; in fmt1() local 153 len = SPRINTF((tmp, "%d%c", t, s)); in fmt1() 154 if (len + 1 > *buflen) in fmt1() 157 *buf += len; in fmt1() 158 *buflen -= len; in fmt1()
|
A D | compat-gethnamaddr.c | 451 int n, size, type, len; in res_gethostbyname2_context() local 503 len = sizeof hostbuf - MAXDNAME; in res_gethostbyname2_context() 608 len = INADDRSZ; in res_gethostbyaddr_context() 622 if (size != len) { in res_gethostbyaddr_context() 665 hp->h_length = len; in res_gethostbyaddr_context() 666 memmove(host_addr, addr, len); in res_gethostbyaddr_context() 719 int af, len; in _gethtent() local 740 len = IN6ADDRSZ; in _gethtent() 745 len = IN6ADDRSZ; in _gethtent() 748 len = INADDRSZ; in _gethtent() [all …]
|
A D | res_send.c | 582 u_short len; in send_vc() local 656 len = sizeof(rlen16); in send_vc() 660 if ((len -= n) <= 0) in send_vc() 725 len = rlen; in send_vc() 728 len = *thisanssizp; in send_vc() 731 len = rlen; in send_vc() 742 while (len != 0 && (n = read(statp->_vcsock, (char *)cp, (int)len)) > 0){ in send_vc() 744 len -= n; in send_vc() 756 while (len != 0) { in send_vc() 760 (len > sizeof junk) ? sizeof junk : len); in send_vc() [all …]
|
A D | res_hconf.c | 105 size_t len; in arg_trimdomain_list() local 111 len = args - start; in arg_trimdomain_list() 128 __strndup (start, len); in arg_trimdomain_list() 193 size_t len; in parse_line() local 203 len = str - start; in parse_line() 207 if (__strncasecmp (start, cmd[i].name, len) == 0 in parse_line() 208 && strlen (cmd[i].name) == len) in parse_line()
|
A D | tst-res_hconf_reorder.c | 39 realloc (void *ptr, size_t len) in realloc() argument 49 return (*fun) (ptr, len); in realloc()
|
A D | res_debug.c | 240 fp_nquery (const unsigned char *msg, int len, FILE *file) in fp_nquery() argument 253 if (ns_initparse(msg, len, &handle) < 0) { in fp_nquery() 334 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument 338 if ((n = __libc_dn_expand (msg, msg + len, cp, name, sizeof name)) < 0) in p_cdnname() 1029 int i, len, count; in libresolv_hidden_def() local 1031 len = strlen(name); in libresolv_hidden_def() 1032 for (i = 0, count = 0; i < len; i++) { in libresolv_hidden_def() 1046 if (len > 0 && name[len-1] != '.') in libresolv_hidden_def()
|
A D | res_init.c | 684 uint8_t len; in res_setoptions() member 701 if (strncmp (cp, options[i].str, options[i].len) == 0) in res_setoptions()
|
/resolv/nss_dns/ |
A D | dns-host.c | 424 _nss_dns_gethostbyaddr2_r (const void *addr, socklen_t len, int af, in libc_hidden_def() 471 if (af == AF_INET6 && len == IN6ADDRSZ in libc_hidden_def() 480 len = INADDRSZ; in libc_hidden_def() 497 if (size > len) in libc_hidden_def() 554 result->h_length = len; in libc_hidden_def() 555 memcpy (host_data->host_addr, addr, len); in libc_hidden_def() 566 _nss_dns_gethostbyaddr_r (const void *addr, socklen_t len, int af, in libc_hidden_def() 570 return _nss_dns_gethostbyaddr2_r (addr, len, af, result, buffer, buflen, in libc_hidden_def()
|
/resolv/arpa/ |
A D | nameser.h | 210 int len; member
|