| /freebsd/lib/libcasper/services/cap_dns/tests/ |
| H A D | dns_test.c | 199 runtest(cap_channel_t *capdns, unsigned int expected) in runtest() argument 214 hpc = cap_gethostbyname(capdns, "example.com"); in runtest() 223 hpc = cap_gethostbyname2(capdns, "example.com", AF_INET); in runtest() 232 hpc = cap_gethostbyname2(capdns, "example.com", AF_INET6); in runtest() 254 caperr = cap_getaddrinfo(capdns, "freebsd.org", "25", hintsp, in runtest() 271 caperr = cap_getaddrinfo(capdns, "freebsd.org", "25", hintsp, in runtest() 288 caperr = cap_getaddrinfo(capdns, "freebsd.org", "25", hintsp, in runtest() 307 hpc = cap_gethostbyaddr(capdns, &ip4, sizeof(ip4), AF_INET); in runtest() 317 hpc = cap_gethostbyaddr(capdns, &ip6, sizeof(ip6), AF_INET6); in runtest() 331 cap_channel_t *capcas, *capdns; in cap_dns_init() local [all …]
|
| /freebsd/usr.sbin/traceroute6/ |
| H A D | traceroute6.c | 328 static cap_channel_t *capdns; variable 633 error = cap_getaddrinfo(capdns, *argv, NULL, &hints, &res); in main() 652 if (cap_getnameinfo(capdns, res->ai_addr, res->ai_addrlen, hbuf, in main() 829 error = cap_getaddrinfo(capdns, source, "0", &hints, &res); in main() 865 if (cap_getnameinfo(capdns, (struct sockaddr *)&Src, Src.sin6_len, in main() 907 if (cap_getnameinfo(capdns, (struct sockaddr *)&Dst, Dst.sin6_len, hbuf, in main() 1351 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, in packet_ok() 1364 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, in packet_ok() 1486 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, in packet_ok() 1570 capdns = cap_service_open(casper, "system.dns"); in capdns_open() [all …]
|
| /freebsd/usr.sbin/traceroute/ |
| H A D | traceroute.c | 349 static cap_channel_t *capdns; variable 536 capdns = cap_service_open(casper, "system.dns"); in main() 537 if (capdns == NULL) in main() 539 if (cap_dns_type_limit(capdns, types, 2) < 0) in main() 542 if (cap_dns_family_limit(capdns, families, 1) < 0) in main() 1876 if (capdns != NULL) in inetname() 1877 hp = cap_gethostbyname(capdns, domain); in inetname() 1895 if (capdns != NULL) in inetname() 1896 hp = cap_gethostbyaddr(capdns, (char *)&in, sizeof(in), in inetname() 1947 if (capdns != NULL) in gethostinfo() [all …]
|
| /freebsd/contrib/tcpdump/ |
| H A D | addrtoname.c | 252 cap_channel_t *capdns; variable 299 if (capdns != NULL) { in ipaddr_string() 300 hp = cap_gethostbyaddr(capdns, (char *)&addr, 4, in ipaddr_string() 361 if (capdns != NULL) { in ip6addr_string() 362 hp = cap_gethostbyaddr(capdns, (char *)&addr, in ip6addr_string()
|
| H A D | addrtoname.h | 26 extern cap_channel_t *capdns;
|
| H A D | tcpdump.c | 2561 capdns = capdns_setup(); in main() 2868 cansandbox = (cansandbox && (ndo->ndo_nflag || capdns != NULL)); in main()
|
| /freebsd/sbin/ping/ |
| H A D | ping.c | 185 static cap_channel_t *capdns; variable 553 capdns = capdns_setup(); in ping() 560 hp = cap_gethostbyname2(capdns, source, AF_INET); in ping() 588 hp = cap_gethostbyname2(capdns, target, AF_INET); in ping() 603 if (capdns != NULL) { in ping() 607 if (cap_dns_type_limit(capdns, types, 1) < 0) in ping() 1632 hp = cap_gethostbyaddr(capdns, (char *)&ina, sizeof(ina), AF_INET); in pr_addr()
|
| H A D | ping6.c | 223 static cap_channel_t *capdns; variable 318 capdns = capdns_setup(); in ping6() 506 error = cap_getaddrinfo(capdns, optarg, NULL, &hints, &res); in ping6() 645 error = cap_getaddrinfo(capdns, target, NULL, &hints, &res); in ping6() 689 error = cap_getaddrinfo(capdns, gateway, NULL, &hints, &res); in ping6() 962 if ((error = cap_getaddrinfo(capdns, argv[hops], NULL, &hints, in ping6() 979 if (capdns != NULL) { in ping6() 983 if (cap_dns_type_limit(capdns, types, nitems(types)) < 0) in ping6() 2547 if (cap_getnameinfo(capdns, addr, addrlen, buf, sizeof(buf), NULL, 0, in pr_addr()
|