/haiku/src/system/libnetwork/netresolv/resolv/ |
H A D | res_query.c | 109 res_nquery(res_state statp, argument 121 oflags = statp->_flags; 126 if (statp->options & RES_DEBUG) 130 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, 133 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && 134 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID)) != 0U) { 135 n = res_nopt(statp, n, buf, (int)sizeof(buf), anslen); 137 if (n > 0 && (statp->options & RES_NSID) != 0U) { 138 n = res_nopt_rdata(statp, n, buf, (int)sizeof(buf), 145 if (statp 210 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument 356 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument 400 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) argument [all...] |
H A D | res_send.c | 194 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { argument 202 for (ns = 0; ns < statp->nscount; ns++) { 203 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); 212 if (EXT(statp).ext == NULL) 215 for (ns = 0; ns < statp->nscount; ns++) { 216 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns); 325 res_nsend(res_state statp, argument 337 if (statp->nscount == 0 || EXT(statp).ext == NULL) { 345 DprintQ((statp 622 get_nsaddr(res_state statp, size_t n) argument 643 send_vc(res_state statp, const void *buf, size_t buflen, u_char *ans, int anssiz, int *terrno, int ns) argument 852 send_dg(res_state statp, int kq, const void *buf, size_t buflen, u_char *ans, int anssiz, int *terrno, int ns, int tries, int *v_circuit, int *gotsomewhere) argument 1135 Aerror(const res_state statp, FILE *file, const char *string, int error, const struct sockaddr *address, socklen_t alen) argument 1160 Perror(const res_state statp, FILE *file, const char *string, int error) argument [all...] |
H A D | res_init.c | 170 res_ninit(res_state statp) { argument 171 return (__res_vinit(statp, 0)); 176 __res_vinit(res_state statp, int preinit) { argument 193 RES_SET_H_ERRNO(statp, 0); 195 if ((statp->options & RES_INIT) != 0U) 196 res_ndestroy(statp); 199 statp->retrans = RES_TIMEOUT; 200 statp->retry = RES_DFLRETRY; 201 statp->options = RES_DEFAULT; 203 res_rndinit(statp); 536 res_setoptions(res_state statp, const char *options, const char *source) argument 690 res_rndinit(res_state statp) argument 709 res_nrandomid(res_state statp) argument 740 res_nclose(res_state statp) argument 758 res_ndestroy(res_state statp) argument 774 res_get_nibblesuffix(res_state statp) argument 782 res_get_nibblesuffix2(res_state statp) argument 790 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument 842 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) argument [all...] |
H A D | res_debug.h | 26 # define Aerror(statp, file, string, error, address, addrLen) /*empty*/ 27 # define Perror(statp, file, string, error) /*empty*/ 32 res_pquery(statp, (query), (int)(size), stdout);\
|
H A D | res_mkquery.c | 102 res_nmkquery(res_state statp, argument 120 if (statp->options & RES_DEBUG) 131 statp->id = res_nrandomid(statp); 132 hp->id = htons(statp->id); 134 hp->rd = (statp->options & RES_RECURSE) != 0U; 135 hp->ad = (statp->options & RES_USE_DNSSEC) != 0U; 216 res_nopt(res_state statp, argument 227 if ((statp->options & RES_DEBUG) != 0U) 248 if (statp 273 res_nopt_rdata(res_state statp, int n0, u_char *buf, int buflen, u_char *rdata, u_short code, u_short len, u_char *data) argument [all...] |
H A D | res_debug.c | 145 fp_resstat(const res_state statp, FILE *file) { argument 150 if (statp->options & mask) 157 do_section(const res_state statp, argument 170 sflag = (int)(statp->pfcode & pflag); 171 if (statp->pfcode && !sflag) 188 (statp->pfcode & RES_PRF_HEAD1)) 192 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) 289 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { argument 309 if ((!statp->pfcode) || (statp [all...] |
/haiku/src/system/libnetwork/netresolv/net/ |
H A D | getaddrinfo.c | 2577 res_state statp) 2600 oflags = statp->_flags; 2611 if (statp->options & RES_DEBUG) 2615 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, 2618 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && 2619 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC)) != 0) { 2620 n = res_nopt(statp, n, buf, (int)sizeof(buf), anslen); 2622 if (n > 0 && (statp->options & RES_NSID) != 0U) { 2623 n = res_nopt_rdata(statp, n, buf, 2631 if (statp 2576 res_queryN(const char *name, struct res_target *target, res_state statp) argument [all...] |