/resolv/ |
A D | ns_makecanon.c | 32 size_t n = strlen (src); in __libc_ns_makecanon() local 34 if (n + sizeof "." > dstsize) /* sizeof == 2. */ in __libc_ns_makecanon() 40 while (n >= 1U && dst[n - 1] == '.') /* Ends in ".". */ in __libc_ns_makecanon() 41 if (n >= 2U && dst[n - 2] == '\\' && /* Ends in "\.". */ in __libc_ns_makecanon() 42 (n < 3U || dst[n - 3] != '\\')) /* But not "\\.". */ in __libc_ns_makecanon() 45 dst[--n] = '\0'; in __libc_ns_makecanon() 46 dst[n++] = '.'; in __libc_ns_makecanon() 47 dst[n] = '\0'; in __libc_ns_makecanon()
|
A D | ns_name_pack.c | 45 unsigned int n; in dn_find() local 65 for (; n > 0; n--) in dn_find() 132 n = *srcp; in ___ns_name_pack() 133 if (n >= 64) in ___ns_name_pack() 138 l += n + 1; in ___ns_name_pack() 144 srcp += n + 1; in ___ns_name_pack() 146 while (n != 0); in ___ns_name_pack() 153 n = *srcp; in ___ns_name_pack() 175 if (n >= 64) in ___ns_name_pack() 181 srcp += n + 1; in ___ns_name_pack() [all …]
|
A D | ns_name_unpack.c | 32 int n, len, checked; in ___ns_name_unpack() local 45 while ((n = *srcp++) != 0) in ___ns_name_unpack() 48 switch (n & NS_CMPRSFLGS) in ___ns_name_unpack() 52 if (n >= 64) in ___ns_name_unpack() 59 if (n + 1 >= dstlim - dstp || n >= eom - srcp) in ___ns_name_unpack() 64 checked += n + 1; in ___ns_name_unpack() 65 *dstp++ = n; in ___ns_name_unpack() 66 memcpy (dstp, srcp, n); in ___ns_name_unpack() 67 dstp += n; in ___ns_name_unpack() 68 srcp += n; in ___ns_name_unpack() [all …]
|
A D | compat-gethnamaddr.c | 145 int n; in getanswer() local 199 bp += n; in getanswer() 230 cp += n; in getanswer() 242 cp += n; in getanswer() 254 bp += n; in getanswer() 258 if (n > buflen || n >= MAXHOSTNAMELEN) { in getanswer() 264 bp += n; in getanswer() 282 if (n > buflen || n >= MAXHOSTNAMELEN) { in getanswer() 394 if (n > buflen || n >= MAXHOSTNAMELEN) in getanswer() 590 int n; in res_gethostbyaddr_context() local [all …]
|
A D | res_get_nsaddr.c | 24 __res_get_nsaddr (res_state statp, unsigned int n) in __res_get_nsaddr() argument 26 assert (n < statp->nscount); in __res_get_nsaddr() 28 if (statp->nsaddr_list[n].sin_family == 0 in __res_get_nsaddr() 29 && statp->_u._ext.nsaddrs[n] != NULL) in __res_get_nsaddr() 33 return (struct sockaddr *) statp->_u._ext.nsaddrs[n]; in __res_get_nsaddr() 37 return (struct sockaddr *) (void *) &statp->nsaddr_list[n]; in __res_get_nsaddr()
|
A D | inet_net_pton.c | 84 int n, ch, tmp, dirty, bits; in inet_net_pton_ipv4() local 98 n = (const char *) __rawmemchr(xdigits, ch) - xdigits; in inet_net_pton_ipv4() 99 assert(n >= 0 && n <= 15); in inet_net_pton_ipv4() 101 tmp = n; in inet_net_pton_ipv4() 103 tmp = (tmp << 4) | n; in inet_net_pton_ipv4() 121 n = ((const char *) __rawmemchr(xdigits, ch) in inet_net_pton_ipv4() 123 assert(n >= 0 && n <= 9); in inet_net_pton_ipv4() 125 tmp += n; in inet_net_pton_ipv4() 149 n = (const char *) __rawmemchr(xdigits, ch) - xdigits; in inet_net_pton_ipv4() 150 assert(n >= 0 && n <= 9); in inet_net_pton_ipv4() [all …]
|
A D | ns_name_skip.c | 28 unsigned int n; in ___ns_name_skip() local 33 n = *cp++; in ___ns_name_skip() 34 if (n == 0) in ___ns_name_skip() 42 switch (n & NS_CMPRSFLGS) in ___ns_name_skip() 45 if (eom - cp < n) in ___ns_name_skip() 47 cp += n; in ___ns_name_skip()
|
A D | res_query.c | 139 n = __res_nopt (ctx, n, query1, bufsize, in __res_context_query() 145 nquery1 = n; in __res_context_query() 151 n = -1; in __res_context_query() 158 if (n > 0 in __res_context_query() 162 n = __res_nopt (ctx, n, query2, bufsize, in __res_context_query() 184 n = __res_nopt (ctx, n, query1, bufsize, advertise); in __res_context_query() 205 return (n); in __res_context_query() 213 if (n < 0) { in __res_context_query() 215 return (n); in __res_context_query() 277 return (n); in __res_context_query() [all …]
|
A D | res_nameinquery.c | 99 int n, ttype, tclass; in __libc_res_nameinquery() local 101 n = __libc_dn_expand (buf, eom, cp, tname, sizeof tname); in __libc_res_nameinquery() 102 if (n < 0) in __libc_res_nameinquery() 104 cp += n; in __libc_res_nameinquery()
|
A D | ns_name_pton.c | 30 int c, n, escaped; in ___ns_name_pton() local 43 n = (c - '0') * 100; in ___ns_name_pton() 49 n += (c - '0') * 10; in ___ns_name_pton() 55 n += c - '0'; in ___ns_name_pton() 56 if (n > 255) in ___ns_name_pton() 61 c = n; in ___ns_name_pton()
|
A D | res_queriesmatch.c | 114 int n, ttype, tclass; in __libc_res_queriesmatch() local 116 n = __libc_dn_expand (buf1, eom1, cp, tname, sizeof tname); in __libc_res_queriesmatch() 117 if (n < 0) in __libc_res_queriesmatch() 119 cp += n; in __libc_res_queriesmatch()
|
A D | res_mkquery.c | 105 int n; in __res_context_mkquery() local 144 n = __ns_name_compress (dname, cp, buflen, in __res_context_mkquery() 147 if (n < 0) in __res_context_mkquery() 149 cp += n; in __res_context_mkquery() 150 buflen -= n; in __res_context_mkquery() 158 n = __ns_name_compress ((char *)data, cp, buflen, in __res_context_mkquery() 161 if (__glibc_unlikely (n < 0)) in __res_context_mkquery() 163 cp += n; in __res_context_mkquery() 164 buflen -= n; in __res_context_mkquery()
|
A D | ns_name.c | 54 u_int n; in ns_name_ntol() local 65 while ((n = *cp++) != 0) { in ns_name_ntol() 66 if ((n & NS_CMPRSFLGS) == NS_CMPRSFLGS) { in ns_name_ntol() 71 *dn++ = n; in ns_name_ntol()
|
A D | ns_name_uncompress.c | 29 int n = __ns_name_unpack (msg, eom, src, tmp, sizeof tmp); in ___ns_name_uncompress() local 30 if (n < 0) in ___ns_name_uncompress() 34 return n; in ___ns_name_uncompress()
|
A D | ns_print.c | 71 int n; in ns_sprintrr() local 77 return (n); in ns_sprintrr() 413 n = 0; in libresolv_hidden_def() 439 int n; in libresolv_hidden_def() local 468 for (n = 0; n < len; n += 48) { in libresolv_hidden_def() 471 T(addstr(base64_cert + n, MIN(len - n, 48), in libresolv_hidden_def() 513 int n; in libresolv_hidden_def() local 575 int n, m; in libresolv_hidden_def() local 694 int n; in addname() local 697 if (n < 0) in addname() [all …]
|
A D | dn_expand.c | 98 int n = __ns_name_uncompress (msg, eom, src, dst, (size_t) dstsiz); in ___dn_expand() local 99 if (n > 0 && dst[0] == '.') in ___dn_expand() 101 return n; in ___dn_expand()
|
A D | gai_notify.c | 43 struct notify_func *const n = arg; in notify_func_wrapper() local 44 void (*func) (sigval_t) = n->func; in notify_func_wrapper() 45 sigval_t value = n->value; in notify_func_wrapper() 46 free (n); in notify_func_wrapper()
|
A D | res_send.c | 270 int n; in __res_context_send() local 363 if (n < 0) in __res_context_send() 377 if (n < 0) in __res_context_send() 387 resplen = n; in __res_context_send() 659 cp += n; in send_vc() 743 cp += n; in send_vc() 744 len -= n; in send_vc() 761 if (n > 0) in send_vc() 762 len -= n; in send_vc() 935 int n; in send_dg() local [all …]
|
A D | inet_pton.c | 225 size_t n = tp - colonp; in inet_pton6() local 226 memmove (endp - n, colonp, n); in inet_pton6() 227 memset (colonp, 0, endp - n - colonp); in inet_pton6()
|
A D | res_debug.c | 167 int n, sflag, rrnum; in do_section() local 207 n = ns_sprintrr(handle, &rr, NULL, NULL, in do_section() 209 if (n < 0) { in do_section() 336 int n; in p_cdnname() local 344 return (cp + n); in p_cdnname() 360 int n, newlen; in p_fqnname() local 371 return (cp + n); in p_fqnname() 380 const u_char *n; in libresolv_hidden_def() local 382 n = p_fqnname(cp, msg, MAXCDNAME, name, sizeof name); in libresolv_hidden_def() 383 if (n == NULL) in libresolv_hidden_def() [all …]
|
A D | tst-resolv-edns.c | 509 char *n = xasprintf ("tcp.%s", probe_name); in do_test() local 511 probe_name = n; in do_test() 517 char *n = xasprintf ("formerr.%s", probe_name); in do_test() local 518 gethostbyname (n); in do_test() 519 free (n); in do_test()
|
A D | resolv-internal.h | 111 struct sockaddr *__res_get_nsaddr (res_state statp, unsigned int n);
|
A D | tst-ns_name.data | 39 ….I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.[.\\.].^._.`.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.… 113 …A 109 \@.C.D.E.F.O.P.Q.R.S.T.U.V.W.X.Y.Z.[.\\._.`.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.… 258 …BfAF9AX4BfwA= 64 37 AW4BbwFwAXEBcgFzAXQBdQF2AXcBeAF5AXoBewF8AX0BfgF/AA== 39 n.o.p.q.r.s.t.u.v.w.x.… 428 …\002\002.\002\..\0040123\00445v\001w\001x\001y\001z\001{\001|\001}\001~\0016n.o.p.q.r.s.t.u.v.w.\2…
|
/resolv/nss_dns/ |
A D | dns-host.c | 222 if (n < 0) in libc_hidden_def() 515 for (n = IN6ADDRSZ - 1; n >= 0; n--) in libc_hidden_def() 761 n = -1; in getanswer_r() 793 cp += n; in getanswer_r() 812 cp += n; in getanswer_r() 821 bp += n; in getanswer_r() 851 cp += n; in getanswer_r() 871 cp += n; in getanswer_r() 960 cp += n; in getanswer_r() 1088 n = -1; in gaih_getanswer_slice() [all …]
|
A D | dns-network.c | 324 if (n < 0 || end_of_message - (cp + n) < QFIXEDSZ) in libc_hidden_def() 329 cp += n + QFIXEDSZ; in libc_hidden_def() 345 n = -1; in libc_hidden_def() 348 if (n < 0 || __libc_res_dnok (bp) == 0) in libc_hidden_def() 350 cp += n; in libc_hidden_def() 379 n = -1; in libc_hidden_def() 382 if (n < 0 || !__libc_res_hnok (bp)) in libc_hidden_def() 387 cp += n; in libc_hidden_def() 394 n = strlen (bp) + 1; in libc_hidden_def() 395 bp += n; in libc_hidden_def() [all …]
|