/resolv/ |
A D | ns_print.c | 145 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def() 313 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def() 404 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def() 523 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def() 546 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def() 682 *buf = save_buf; in charstr() 711 (*buf)[newlen] == '\0')) && (*buf)[newlen - 1] != '.') { in addname() 722 **buf = '\0'; in addname() 726 *buf = save_buf; in addname() 734 *buf += len; in addlen() [all …]
|
A D | tst-inet_ntop.c | 12 char buf[64]; in do_test() local 23 memset (buf, 'x', sizeof buf); in do_test() 25 if (inet_ntop (AF_INET, &addr4, buf, 15) != NULL) in do_test() 35 if (buf[15] != 'x') in do_test() 41 if (inet_ntop (AF_INET, &addr4, buf, 16) != buf) in do_test() 52 if (inet_ntop (AF_INET6, &addr6, buf, 22) != NULL) in do_test() 62 if (buf[22] != 'x') in do_test() 68 if (inet_ntop (AF_INET6, &addr6, buf, 23) != buf) in do_test() 81 if (inet_ntop (AF_INET6, &addr6, buf, 39) != NULL) in do_test() 91 if (buf[39] != 'x') in do_test() [all …]
|
A D | res-name-checking.c | 147 unsigned char buf[NS_MAXCDNAME]; in ___res_hnok() local 149 || __ns_name_pton (dn, buf, sizeof (buf)) < 0 in ___res_hnok() 152 return binary_hnok (buf); in ___res_hnok() 166 unsigned char buf[NS_MAXCDNAME]; in ___res_ownok() local 168 || __ns_name_pton (dn, buf, sizeof (buf)) < 0 in ___res_ownok() 171 if (buf[0] == 1 && buf [1] == '*') in ___res_ownok() 173 return binary_hnok (buf + 2); in ___res_ownok() 175 return binary_hnok (buf); in ___res_ownok() 187 unsigned char buf[NS_MAXCDNAME]; in ___res_mailok() local 189 || __ns_name_pton (dn, buf, sizeof (buf)) < 0) in ___res_mailok() [all …]
|
A D | tst-resolv-qtypes.c | 77 unsigned char buf[512]; in wrap_res_send() local 80 buf, sizeof (buf)); in wrap_res_send() 88 return res_send (buf, ret, answer, answer_length); in wrap_res_send() 113 unsigned char buf[512]; in wrap_res_nsend() local 116 buf, sizeof (buf)); in wrap_res_nsend() 124 return res_nsend (&_res, buf, ret, answer, answer_length); in wrap_res_nsend() 132 unsigned char buf[512]; in test_function() local 141 int ret = func (type, buf, sizeof (buf)); in test_function() 150 TEST_VERIFY (memcmp (buf + 12, qname, qname_length) == 0); in test_function() 157 TEST_VERIFY (func (-1, buf, sizeof (buf) == -1)); in test_function() [all …]
|
A D | res_mkquery.c | 112 if ((buf == NULL) || (buflen < HFIXEDSZ)) in __res_context_mkquery() 114 memset (buf, 0, HFIXEDSZ); in __res_context_mkquery() 115 hp = (HEADER *) buf; in __res_context_mkquery() 125 cp = buf + HFIXEDSZ; in __res_context_mkquery() 128 *dpp++ = buf; in __res_context_mkquery() 175 return cp - buf; in __res_context_mkquery() 191 memcpy (&ctx->resp->id, buf, 2); in libc_hidden_def() 253 HEADER *hp = (HEADER *) buf; in __res_nopt() 254 unsigned char *cp = buf + n0; in __res_nopt() 255 unsigned char *ep = buf + buflen; in __res_nopt() [all …]
|
A D | res_context_hostalias.c | 98 char buf[BUFSIZ]; in __res_context_hostalias() local 106 buf[sizeof (buf) - 1] = '\0'; in __res_context_hostalias() 107 while (__fgets_unlocked (buf, sizeof (buf), fp)) in __res_context_hostalias() 109 for (cp1 = buf; *cp1 && !isspace (*cp1); ++cp1) in __res_context_hostalias() 114 if (__libc_ns_samename (buf, name) == 1) in __res_context_hostalias()
|
A D | tst-ns_name_compress.c | 30 unsigned char *buf = xmalloc (length + 1); in test_exact_fit() local 31 memset (buf, '$', length + 1); in test_exact_fit() 33 const unsigned char *dnptrs[ptr_count] = { buf, }; in test_exact_fit() 34 int ret = ns_name_compress (name, buf, length, in test_exact_fit() 48 if (buf[length] != '$') in test_exact_fit() 54 free (buf); in test_exact_fit()
|
A D | res_hconf.c | 115 char *buf; in arg_trimdomain_list() local 124 free (buf); in arg_trimdomain_list() 136 char *buf; in arg_trimdomain_list() local 145 free (buf); in arg_trimdomain_list() 172 char *buf; in arg_bool() local 181 free (buf); in arg_bool() 216 char *buf; in parse_line() local 224 free (buf); in parse_line() 248 char *buf; in parse_line() local 257 free (buf); in parse_line() [all …]
|
A D | compat-gethnamaddr.c | 553 (ctx, name, C_IN, type, buf.buf->buf, 1024, in res_gethostbyname2_context() 555 if (buf.buf != origbuf) in res_gethostbyname2_context() 556 free (buf.buf); in res_gethostbyname2_context() 561 ret = getanswer(buf.buf, n, name, type); in res_gethostbyname2_context() 562 if (buf.buf != origbuf) in res_gethostbyname2_context() 563 free (buf.buf); in res_gethostbyname2_context() 650 n = __res_context_query (ctx, qbuf, C_IN, T_PTR, buf.buf->buf, 1024, in res_gethostbyaddr_context() 653 if (buf.buf != orig_buf) in res_gethostbyaddr_context() 654 free (buf.buf); in res_gethostbyaddr_context() 660 if (buf.buf != orig_buf) in res_gethostbyaddr_context() [all …]
|
A D | tst-resolv-trailing.c | 69 char buf[4096]; in do_test() local 78 TEST_COMPARE (gethostbyname_r (query, &storage, buf, sizeof (buf), in do_test() 90 &storage, buf, sizeof (buf), in do_test() 102 &storage, buf, sizeof (buf), in do_test()
|
A D | res_nameinquery.c | 91 const unsigned char *buf, const unsigned char *eom) in __libc_res_nameinquery() argument 93 const unsigned char *cp = buf + HFIXEDSZ; in __libc_res_nameinquery() 94 int qdcount = ntohs (((HEADER *) buf)->qdcount); in __libc_res_nameinquery() 101 n = __libc_dn_expand (buf, eom, cp, tname, sizeof tname); in __libc_res_nameinquery()
|
A D | tst-leaks.c | 34 unsigned char buf[256]; in do_test() local 40 res_query ("1.0.0.127.in-addr.arpa.", C_ANY, T_ANY, buf, 256); in do_test()
|
A D | tst-resolv-nondecimal.c | 93 char buf[4096]; in run_query() local 95 TEST_COMPARE (gethostbyname_r (query, &storage, buf, sizeof (buf), in run_query() 106 TEST_COMPARE (gethostbyname2_r (query, AF_INET, &storage, buf, sizeof (buf), in run_query()
|
A D | tst-res_hconf_reorder.c | 59 char buf[1024]; in resolve() local 63 &ent, buf, sizeof (buf), &result, &err); in resolve()
|
A D | resolv-deprecated.c | 46 const unsigned char *buf, const unsigned char *eom) in res_nameinquery() argument 48 return __libc_res_nameinquery (name, type, class, buf, eom); in res_nameinquery()
|
A D | ns_ttl.c | 36 static int fmt1(int t, char s, char **buf, size_t *buflen); 149 fmt1(int t, char s, char **buf, size_t *buflen) { in fmt1() argument 156 strcpy(*buf, tmp); in fmt1() 157 *buf += len; in fmt1()
|
A D | res_send.c | 126 vec->iov_base = buf; in evConsIovec() 245 mask_ad_bit (struct resolv_context *ctx, void *buf) in mask_ad_bit() argument 248 ((HEADER *) buf)->ad = 0; in mask_ad_bit() 253 const unsigned char *buf, int buflen, in __res_context_send() argument 359 n = send_vc(statp, buf, buflen, buf2, buflen2, in __res_context_send() 373 n = send_dg(statp, buf, buflen, buf2, buflen2, in __res_context_send() 433 const unsigned char *buf, int buflen, in libc_hidden_def() 563 const HEADER *hp = (HEADER *) buf; in send_vc() 631 evConsIovec((void*)buf, buflen, &iov[1]); in send_vc() 928 const HEADER *hp = (HEADER *) buf; in send_dg() [all …]
|
A D | ns_date.c | 101 datepart(const char *buf, int size, int min, int max, int *errp) { in datepart() argument 106 if (!isdigit((unsigned char)(buf[i]))) in datepart() 108 result = (result * 10) + buf[i] - '0'; in datepart()
|
A D | tst-resolv-threads.c | 248 char buf[1000]; in byname() local 253 ret = gethostbyname_r (qname, &storage, buf, sizeof (buf), in byname() 256 ret = gethostbyname2_r (qname, AF_INET, &storage, buf, sizeof (buf), in byname() 291 char buf[1000]; in thread_byname2_af_inet6() local 294 int ret = gethostbyname2_r (qname, AF_INET6, &storage, buf, sizeof (buf), in thread_byname2_af_inet6()
|
A D | resolv-internal.h | 58 unsigned char *buf, int buflen); 88 unsigned char *buf, int buflen, int anslen);
|
A D | tst-resolv-network.c | 85 char buf[500]; in handle_code() local 86 memset (buf, 0x3f, sizeof (buf)); in handle_code() 87 resolv_response_add_data (b, buf, sizeof (buf)); in handle_code()
|
A D | tst-resolv-res_init-skeleton.c | 72 char buf[100]; in check_chroot_working() local 73 if (gethostname (buf, sizeof (buf)) < 0) in check_chroot_working() 75 if (strcmp (buf, test_hostname) != 0) in check_chroot_working() 76 FAIL_EXIT1 ("unexpected host name: %s", buf); in check_chroot_working() 374 unsigned char buf[512]; in run_res_init() local 377 NULL, buf, sizeof (buf)) > 0); in run_res_init() 855 unsigned char buf[512]; in special_test_callback() local 858 NULL, 0, NULL, buf, sizeof (buf)) > 0); in special_test_callback()
|
/resolv/nss_dns/ |
A D | dns-canon.c | 40 unsigned char buf[MAXPACKET]; member 54 unsigned char buf[20]; in _nss_dns_getcanonname_r() local 57 querybuf *buf; in _nss_dns_getcanonname_r() member 59 } ansp = { .ptr = buf }; in _nss_dns_getcanonname_r() 73 buf, sizeof (buf), &ansp.ptr, NULL, NULL, in _nss_dns_getcanonname_r() 79 if (ansp.buf->hdr.qdcount != htons (1)) in _nss_dns_getcanonname_r() 87 unsigned char *ptr = &ansp.buf->buf[sizeof (HEADER)]; in _nss_dns_getcanonname_r() 126 s = __libc_dn_expand (ansp.buf->buf, endptr, namestart, in _nss_dns_getcanonname_r() 171 if (ansp.ptr != buf) in _nss_dns_getcanonname_r() 174 ansp.ptr = buf; in _nss_dns_getcanonname_r() [all …]
|
A D | dns-network.c | 95 u_char buf[MAXPACKET]; member 113 querybuf *buf; in _nss_dns_getnetbyname_r() member 131 (ctx, name, C_IN, T_PTR, net_buffer.buf->buf, in _nss_dns_getnetbyname_r() 138 free (net_buffer.buf); in _nss_dns_getnetbyname_r() 148 if (net_buffer.buf != orig_net_buffer) in _nss_dns_getnetbyname_r() 149 free (net_buffer.buf); in _nss_dns_getnetbyname_r() 164 querybuf *buf; in libc_hidden_def() member 214 anslen = __res_context_query (ctx, qbuf, C_IN, T_PTR, net_buffer.buf->buf, in libc_hidden_def() 222 free (net_buffer.buf); in libc_hidden_def() 232 if (net_buffer.buf != orig_net_buffer) in libc_hidden_def() [all …]
|
A D | dns-host.c | 110 u_char buf[MAXPACKET]; member 180 querybuf *buf; in libc_hidden_def() member 220 n = __res_context_search (ctx, name, C_IN, type, host_buffer.buf->buf, in libc_hidden_def() 253 n = __res_context_search (ctx, name, C_IN, T_A, host_buffer.buf->buf, in libc_hidden_def() 275 free (host_buffer.buf); in libc_hidden_def() 362 querybuf *buf; in libc_hidden_def() member 374 host_buffer.buf->buf, 2048, &host_buffer.ptr, in libc_hidden_def() 416 free (host_buffer.buf); in libc_hidden_def() 441 querybuf *buf; in libc_hidden_def() member 530 n = __res_context_query (ctx, qbuf, C_IN, T_PTR, host_buffer.buf->buf, in libc_hidden_def() [all …]
|