/resolv/ |
A D | tst-resolv-binary.c | 91 TEST_COMPARE (*p++, 0xc0); in do_test() 92 TEST_COMPARE (*p++, 0x0c); in do_test() 95 TEST_COMPARE (*p++, 0); in do_test() 96 TEST_COMPARE (*p++, T_TXT); in do_test() 97 TEST_COMPARE (*p++, 0); in do_test() 98 TEST_COMPARE (*p++, C_IN); in do_test() 101 TEST_COMPARE (*p++, 0x12); in do_test() 102 TEST_COMPARE (*p++, 0x34); in do_test() 103 TEST_COMPARE (*p++, 0x56); in do_test() 104 TEST_COMPARE (*p++, 0x78); in do_test() [all …]
|
A D | mapv4v6addr.h | 58 u_char *p = (u_char *) dst; in map_v4v6_address() local 66 *p++ = 0x00; in map_v4v6_address() 67 *p++ = 0xff; in map_v4v6_address() 68 *p = 0xff; in map_v4v6_address()
|
A D | tst-resolv-threads.c | 172 for (struct addrinfo *p = ai; p != NULL; p = p->ai_next) in check_addrinfo() local 174 TEST_VERIFY (p->ai_socktype == SOCK_STREAM); in check_addrinfo() 175 TEST_VERIFY (p->ai_protocol == IPPROTO_TCP); in check_addrinfo() 176 TEST_VERIFY_EXIT (p->ai_addr != NULL); in check_addrinfo() 177 TEST_VERIFY (p->ai_addr->sa_family == p->ai_family); in check_addrinfo() 179 switch (p->ai_family) in check_addrinfo() 185 struct sockaddr_in *sa = (struct sockaddr_in *) p->ai_addr; in check_addrinfo() 186 TEST_VERIFY (p->ai_addrlen == sizeof (*sa)); in check_addrinfo() 196 struct sockaddr_in6 *sa = (struct sockaddr_in6 *) p->ai_addr; in check_addrinfo() 197 TEST_VERIFY (p->ai_addrlen == sizeof (*sa)); in check_addrinfo()
|
A D | tst-p_secstodate.c | 61 char *p = __p_secstodate (tests[i].in); in do_test() local 62 printf ("Test %zu: %lu -> %s\n", i, tests[i].in, p); in do_test() 63 if (strcmp (p, tests[i].out) != 0) in do_test()
|
A D | compat-gethnamaddr.c | 717 char *p; in _gethtent() local 730 if (*p == '#') in _gethtent() 798 struct hostent *p; in _gethtbyname2() local 813 return (p); in _gethtbyname2() 825 if (p->h_addrtype == af && !memcmp(p->h_addr, addr, len)) in _gethtbyaddr() 828 return (p); in _gethtbyaddr() 844 *p++ = 0x00; in map_v4v6_address() 845 *p++ = 0xff; in map_v4v6_address() 846 *p++ = 0xff; in map_v4v6_address() 881 char **p; in addrsort() local [all …]
|
A D | ns_ttl.c | 48 char *p; in ns_format_ttl() local 81 for (p = odst; (ch = *p) != '\0'; p++) in ns_format_ttl() 83 *p = tolower(ch); in ns_format_ttl()
|
A D | tst-resolv-edns.c | 432 unsigned char *p = buffer + sizeof (*hd); in do_res_search() local 434 ret = dn_skipname (p, end); in do_res_search() 436 p += ret; in do_res_search() 437 TEST_VERIFY_EXIT (end - p >= 4); in do_res_search() 438 p += 4; in do_res_search() 441 ret = dn_skipname (p, end); in do_res_search() 443 p += ret; in do_res_search() 445 p += 2 + 2 + 4; in do_res_search() 447 TEST_VERIFY_EXIT (p[0] == 0); in do_res_search() 448 TEST_VERIFY_EXIT (p[1] == 4); in do_res_search() [all …]
|
A D | tst-ns_name.c | 184 unsigned char *p = buffer.data; in print_hex() local 185 unsigned char *end = p + buffer.length; in print_hex() 186 while (p < end) in print_hex() 188 printf ("%02X", *p & 0xFF); in print_hex() 189 ++p; in print_hex() 412 char *p = line; in run_test_file() local 413 while (isspace (*p)) in run_test_file() 414 ++p; in run_test_file() 415 if (*p == '\0' || *p == '#') in run_test_file()
|
A D | tst-resolv-ai_idn-common.c | 185 for (const char *p = qname; *p != '\0'; ++p) in response() local 186 if (!(('0' <= *p && *p <= '9') in response() 187 || ('a' <= *p && *p <= 'z') in response() 188 || ('A' <= *p && *p <= 'Z') in response() 189 || *p == '.' || *p == '-' || *p == '_')) in response()
|
A D | tst-resolv-rotate.c | 171 for (struct addrinfo *p = ai; p != NULL; p = p->ai_next) in check_forward_1() local 174 ret = getnameinfo (p->ai_addr, p->ai_addrlen, in check_forward_1()
|
A D | res_init.c | 364 char *p = strchr (cp, '\n'); in res_vinit_1() local 365 if (p != NULL) in res_vinit_1() 366 *p = '\0'; in res_vinit_1() 451 const struct sockaddr **p = nameserver_list_emplace in res_vinit_1() local 453 if (p != NULL) in res_vinit_1() 454 *p = sa; in res_vinit_1() 515 const struct sockaddr **p in res_vinit_1() local 517 if (p == NULL) in res_vinit_1() 519 *p = allocate_address_v4 (__inet_makeaddr (IN_LOOPBACKNET, 1), in res_vinit_1() 521 if (*p == NULL) in res_vinit_1()
|
A D | ns_print.c | 42 const u_char **p, const char *origin, 576 char *p; in libresolv_hidden_def() local 582 p = tmp; in libresolv_hidden_def() 583 p += SPRINTF((p, "\n\t")); in libresolv_hidden_def() 587 p += SPRINTF((p, "%02x ", rdata[m])); in libresolv_hidden_def() 588 T(addstr(tmp, p - tmp, &buf, &buflen)); in libresolv_hidden_def() 591 T(addtab(p - tmp + 1, 48, spaced, &buf, &buflen)); in libresolv_hidden_def() 593 p = tmp; in libresolv_hidden_def() 594 p += SPRINTF((p, "; ")); in libresolv_hidden_def() 596 *p++ = (isascii(rdata[m]) && isprint(rdata[m])) in libresolv_hidden_def() [all …]
|
A D | res_query.c | 613 char *p = __stpcpy (nbuf, name); in __res_context_querydomain() local 614 *p++ = '.'; in __res_context_querydomain() 615 strcpy (p, domain); in __res_context_querydomain()
|
A D | tst-ns_name.data | 39 ….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.y.z.… 113 …9 \@.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.y.z.… 258 …9AX4BfwA= 64 37 AW4BbwFwAXEBcgFzAXQBdQF2AXcBeAF5AXoBewF8AX0BfgF/AA== 39 n.o.p.q.r.s.t.u.v.w.x.y.z.… 428 …\002.\002\..\0040123\00445v\001w\001x\001y\001z\001{\001|\001}\001~\0016n.o.p.q.r.s.t.u.v.w.\255.y…
|
/resolv/nss_dns/ |
A D | dns-network.c | 434 if (*p == '0' && p[1] != '.') in libc_hidden_def() 437 ++p; in libc_hidden_def() 438 if (*p == 'x' || *p == 'X') in libc_hidden_def() 441 ++p; in libc_hidden_def() 445 if (*p == '\0') in libc_hidden_def() 452 if (isdigit (*p) && (*p - '0' < base)) in libc_hidden_def() 456 ++p; in libc_hidden_def() 457 } while (*p != '\0' && *p != '.'); in libc_hidden_def() 459 if (*p != '.') in libc_hidden_def() 465 ++p; in libc_hidden_def() [all …]
|
A D | dns-host.c | 579 char **p; in libc_hidden_def() local 584 p = ap; in libc_hidden_def() 587 for (i = 0; i < num; i++, p++) in libc_hidden_def() 593 if (e.addr.s_addr == (((struct in_addr *)(*p))->s_addr & e.mask)) in libc_hidden_def()
|