Home
last modified time | relevance | path

Searched refs:capdns (Results 1 – 6 of 6) sorted by relevance

/freebsd-12-stable/lib/libcasper/services/cap_dns/tests/
Ddns_test.c223 runtest(cap_channel_t *capdns) in runtest() argument
236 hpc = cap_gethostbyname(capdns, "example.com"); in runtest()
243 hpc = cap_gethostbyname2(capdns, "example.com", AF_INET); in runtest()
250 hpc = cap_gethostbyname2(capdns, "example.com", AF_INET6); in runtest()
270 if (cap_getaddrinfo(capdns, "freebsd.org", "25", hintsp, &aic) == 0) { in runtest()
283 if (cap_getaddrinfo(capdns, "freebsd.org", "25", hintsp, &aic) == 0) { in runtest()
296 if (cap_getaddrinfo(capdns, "freebsd.org", "25", hintsp, &aic) == 0) { in runtest()
311 hpc = cap_gethostbyaddr(capdns, &ip4, sizeof(ip4), AF_INET); in runtest()
320 hpc = cap_gethostbyaddr(capdns, &ip6, sizeof(ip6), AF_INET6); in runtest()
329 cap_channel_t *capcas, *capdns, *origcapdns; in main() local
[all …]
/freebsd-12-stable/sbin/ping/
Dping.c211 static cap_channel_t *capdns; variable
567 capdns = capdns_setup(); in main()
574 if (capdns != NULL) in main()
575 hp = cap_gethostbyname2(capdns, source, in main()
606 if (capdns != NULL) in main()
607 hp = cap_gethostbyname2(capdns, target, AF_INET); in main()
624 if (capdns != NULL) { in main()
628 if (cap_dns_type_limit(capdns, types, 1) < 0) in main()
722 else if (capdns != NULL) in main()
1713 if (capdns != NULL) in pr_addr()
[all …]
/freebsd-12-stable/contrib/traceroute/
Dtraceroute.c374 static cap_channel_t *capdns; variable
564 capdns = cap_service_open(casper, "system.dns"); in main()
565 if (capdns == NULL) in main()
567 if (cap_dns_type_limit(capdns, types, 2) < 0) in main()
570 if (cap_dns_family_limit(capdns, families, 1) < 0) in main()
1911 if (capdns != NULL) in inetname()
1912 hp = cap_gethostbyname(capdns, domain); in inetname()
1930 if (capdns != NULL) in inetname()
1931 hp = cap_gethostbyaddr(capdns, (char *)&in, sizeof(in), in inetname()
1982 if (capdns != NULL) in gethostinfo()
[all …]
/freebsd-12-stable/contrib/tcpdump/
Daddrtoname.c216 extern cap_channel_t *capdns;
264 if (capdns != NULL) { in getname()
265 hp = cap_gethostbyaddr(capdns, (char *)&addr, 4, in getname()
325 if (capdns != NULL) { in getname6()
326 hp = cap_gethostbyaddr(capdns, (char *)&addr, in getname6()
Dtcpdump.c179 cap_channel_t *capdns; variable
1819 capdns = capdns_setup(); in main()
2046 cansandbox = (cansandbox && (ndo->ndo_nflag || capdns != NULL)); in main()
/freebsd-12-stable/sbin/ping6/
Dping6.c234 static cap_channel_t *capdns; variable
344 capdns = capdns_setup(); in main()
523 error = cap_getaddrinfo(capdns, optarg, NULL, &hints, &res); in main()
654 error = cap_getaddrinfo(capdns, target, NULL, &hints, &res); in main()
697 error = cap_getaddrinfo(capdns, gateway, NULL, &hints, &res); in main()
964 if ((error = cap_getaddrinfo(capdns, argv[hops], NULL, &hints, in main()
981 if (capdns != NULL) { in main()
985 if (cap_dns_type_limit(capdns, types, nitems(types)) < 0) in main()
2609 if (cap_getnameinfo(capdns, addr, addrlen, buf, sizeof(buf), NULL, 0, in pr_addr()