/resolv/ |
A D | inet_net_ntop.c | 35 char *dst, size_t size) __THROW; 48 inet_net_ntop (int af, const void *src, int bits, char *dst, size_t size) in inet_net_ntop() argument 52 return (inet_net_ntop_ipv4(src, bits, dst, size)); in inet_net_ntop() 73 inet_net_ntop_ipv4 (const u_char *src, int bits, char *dst, size_t size) in inet_net_ntop_ipv4() argument 85 if (size < sizeof "0") in inet_net_ntop_ipv4() 88 size--; in inet_net_ntop_ipv4() 94 if (size < sizeof "255.") in inet_net_ntop_ipv4() 102 size -= (size_t)(dst - t); in inet_net_ntop_ipv4() 108 if (size < sizeof ".255") in inet_net_ntop_ipv4() 115 size -= (size_t)(dst - t); in inet_net_ntop_ipv4() [all …]
|
A D | inet_net_pton.c | 37 size_t size) __THROW; 53 inet_net_pton (int af, const char *src, void *dst, size_t size) in inet_net_pton() argument 57 return (inet_net_pton_ipv4(src, dst, size)); in inet_net_pton() 81 inet_net_pton_ipv4 (const char *src, u_char *dst, size_t size) in inet_net_pton_ipv4() argument 91 if (size <= 0) in inet_net_pton_ipv4() 105 if (size-- <= 0) in inet_net_pton_ipv4() 112 if (size-- <= 0) in inet_net_pton_ipv4() 129 if (size-- <= 0) in inet_net_pton_ipv4() 185 if (size-- <= 0) in inet_net_pton_ipv4()
|
A D | inet_ntop.c | 41 static const char *inet_ntop4 (const u_char *src, char *dst, socklen_t size); 42 static const char *inet_ntop6 (const u_char *src, char *dst, socklen_t size); 53 inet_ntop (int af, const void *src, char *dst, socklen_t size) in inet_ntop() argument 57 return (inet_ntop4(src, dst, size)); in inet_ntop() 59 return (inet_ntop6(src, dst, size)); in inet_ntop() 80 inet_ntop4 (const u_char *src, char *dst, socklen_t size) in libc_hidden_def() 85 if (SPRINTF((tmp, fmt, src[0], src[1], src[2], src[3])) >= size) { in libc_hidden_def() 99 inet_ntop6 (const u_char *src, char *dst, socklen_t size) in inet_ntop6() argument 180 if ((socklen_t)(tp - tmp) > size) { in inet_ntop6()
|
A D | inet_neta.c | 45 inet_neta (uint32_t src, char *dst, size_t size) in inet_neta() argument 55 if (size < sizeof "255.") in inet_neta() 63 size -= (size_t)(dst - tp); in inet_neta() 67 if (size < sizeof "0.0.0.0") in inet_neta()
|
A D | tst-resolv-edns.c | 207 decode_address (const void *address, size_t size) in decode_address() argument 209 switch (size) in decode_address() 218 FAIL_EXIT1 ("unexpected address size %zu", size); in decode_address() 221 unsigned int index = addr[size - 3] * 256 * 256 in decode_address() 222 + addr[size - 2] * 256 in decode_address() 223 + addr[size - 1]; in decode_address() 381 do_res_search (const char *probe_name, enum res_op op, size_t size, in do_res_search() argument 386 res_op_string (op), size); in do_res_search() 387 unsigned char *buffer = xmalloc (size); in do_res_search() 392 ret = res_search (probe_name, C_IN, T_A, buffer, size); in do_res_search() [all …]
|
A D | tst-resolv-basic.c | 139 for (unsigned int size = 1; too_small; ++size) in check_h() local 141 char *buf = xmalloc (offset + size); in check_h() 150 name, offset, size); in check_h() 152 (name, &hostbuf, buf + offset, size, &result, &herror); in check_h() 166 memset (buf, 0, offset + size); in check_h() 169 name, family, offset, size); in check_h() 171 (name, family, &hostbuf, buf + offset, size, &result, &herror); in check_h()
|
A D | ns_date.c | 101 datepart(const char *buf, int size, int min, int max, int *errp) { in datepart() argument 105 for (i = 0; i < size; i++) { in datepart()
|
A D | tst-ns_name.c | 50 size_t size = strlen (base64); in base64_to_buffer() local 51 unsigned char *data = xmalloc (size); in base64_to_buffer() 52 int ret = b64_pton (base64, data, size); in base64_to_buffer() 53 if (ret < 0 || ret > size) in base64_to_buffer()
|
A D | compat-gethnamaddr.c | 451 int n, size, type, len; in res_gethostbyname2_context() local 456 size = INADDRSZ; in res_gethostbyname2_context() 460 size = IN6ADDRSZ; in res_gethostbyname2_context() 470 host.h_length = size; in res_gethostbyname2_context() 591 socklen_t size; in res_gethostbyaddr_context() local 612 size = INADDRSZ; in res_gethostbyaddr_context() 615 size = IN6ADDRSZ; in res_gethostbyaddr_context() 622 if (size != len) { in res_gethostbyaddr_context()
|
A D | resolv_conf.c | 157 global_copy->file_resolve_conf.size = -1; in __resolv_conf_get_current() 523 size_t size = conf->search_list_size; in update_from_conf() local 525 for (i = 0; i < size && i < MAXDNSRCH; ++i) in update_from_conf() 602 size_t size = resolv_conf_array_size (&global_copy->array); in __resolv_conf_attach() local 612 index = size; in __resolv_conf_attach()
|
A D | res_send.c | 593 socklen_t size = sizeof peer; in send_vc() local 596 (struct sockaddr *) &peer, &size) < 0 in send_vc()
|
/resolv/nss_dns/ |
A D | dns-host.c | 185 int size, type, n; in libc_hidden_def() local 193 size = INADDRSZ; in libc_hidden_def() 197 size = IN6ADDRSZ; in libc_hidden_def() 207 result->h_length = size; in libc_hidden_def() 446 size_t size; in libc_hidden_def() local 486 size = INADDRSZ; in libc_hidden_def() 489 size = IN6ADDRSZ; in libc_hidden_def() 497 if (size > len) in libc_hidden_def()
|