/freebsd-current/lib/libcasper/services/cap_dns/tests/ |
H A D | dns_test.c | 200 runtest(cap_channel_t *capdns, unsigned int expected) argument 216 hpc = cap_gethostbyname(capdns, "example.com"); 226 hpc = cap_gethostbyname2(capdns, "example.com", AF_INET); 236 hpc = cap_gethostbyname2(capdns, "example.com", AF_INET6); 259 caperr = cap_getaddrinfo(capdns, "freebsd.org", "25", hintsp, 277 caperr = cap_getaddrinfo(capdns, "freebsd.org", "25", hintsp, 295 caperr = cap_getaddrinfo(capdns, "freebsd.org", "25", hintsp, 315 hpc = cap_gethostbyaddr(capdns, &ip4, sizeof(ip4), AF_INET); 326 hpc = cap_gethostbyaddr(capdns, &ip6, sizeof(ip6), AF_INET6); 355 cap_channel_t *capcas, *capdns; local 374 cap_channel_t *capdns; local 393 cap_channel_t *capdns; local 424 cap_channel_t *capdns; local 455 cap_channel_t *capdns; local 485 cap_channel_t *capdns; local 516 cap_channel_t *capdns; local 547 cap_channel_t *capdns; local 588 cap_channel_t *capdns; local 629 cap_channel_t *capdns; local 669 cap_channel_t *capdns; local [all...] |
/freebsd-current/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 328 static cap_channel_t *capdns; variable 629 error = cap_getaddrinfo(capdns, *argv, NULL, &hints, &res); 648 if (cap_getnameinfo(capdns, res->ai_addr, res->ai_addrlen, hbuf, 825 error = cap_getaddrinfo(capdns, source, "0", &hints, &res); 861 if (cap_getnameinfo(capdns, (struct sockaddr *)&Src, Src.sin6_len, 901 if (cap_getnameinfo(capdns, (struct sockaddr *)&Dst, Dst.sin6_len, hbuf, 1341 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, 1354 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, 1476 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, 1560 capdns [all...] |
/freebsd-current/contrib/tcpdump/ |
H A D | addrtoname.h | 26 extern cap_channel_t *capdns;
|
H A D | addrtoname.c | 254 cap_channel_t *capdns; variable 301 if (capdns != NULL) { 302 hp = cap_gethostbyaddr(capdns, (char *)&addr, 4, 363 if (capdns != NULL) { 364 hp = cap_gethostbyaddr(capdns, (char *)&addr,
|
H A D | tcpdump.c | 247 * cap_channel_t *capdns; 2276 capdns = capdns_setup(); 2569 cansandbox = (cansandbox && (ndo->ndo_nflag || capdns != NULL));
|
/freebsd-current/usr.sbin/traceroute/ |
H A D | traceroute.c | 349 static cap_channel_t *capdns; variable 536 capdns = cap_service_open(casper, "system.dns"); 537 if (capdns == NULL) 539 if (cap_dns_type_limit(capdns, types, 2) < 0) 542 if (cap_dns_family_limit(capdns, families, 1) < 0) 1859 if (capdns != NULL) 1860 hp = cap_gethostbyname(capdns, domain); 1878 if (capdns != NULL) 1879 hp = cap_gethostbyaddr(capdns, (char *)&in, sizeof(in), 1930 if (capdns ! [all...] |
/freebsd-current/sbin/ping/ |
H A D | ping.c | 185 static cap_channel_t *capdns; variable 553 capdns = capdns_setup(); 560 hp = cap_gethostbyname2(capdns, source, AF_INET); 588 hp = cap_gethostbyname2(capdns, target, AF_INET); 603 if (capdns != NULL) { 607 if (cap_dns_type_limit(capdns, types, 1) < 0) 1601 hp = cap_gethostbyaddr(capdns, (char *)&ina, sizeof(ina), AF_INET);
|
H A D | ping6.c | 222 static cap_channel_t *capdns; variable 316 capdns = capdns_setup(); 503 error = cap_getaddrinfo(capdns, optarg, NULL, &hints, &res); 642 error = cap_getaddrinfo(capdns, target, NULL, &hints, &res); 686 error = cap_getaddrinfo(capdns, gateway, NULL, &hints, &res); 959 if ((error = cap_getaddrinfo(capdns, argv[hops], NULL, &hints, 976 if (capdns != NULL) { 980 if (cap_dns_type_limit(capdns, types, nitems(types)) < 0) 2535 if (cap_getnameinfo(capdns, addr, addrlen, buf, sizeof(buf), NULL, 0,
|