Home
last modified time | relevance | path

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

/freebsd-13.1/lib/libcasper/services/cap_dns/tests/
H A Ddns_test.c372 cap_close(capdns); in main()
399 cap_close(capdns); in main()
424 cap_close(capdns); in main()
451 cap_close(capdns); in main()
478 cap_close(capdns); in main()
517 cap_close(capdns); in main()
554 cap_close(capdns); in main()
590 cap_close(capdns); in main()
626 cap_close(capdns); in main()
663 cap_close(capdns); in main()
[all …]
/freebsd-13.1/usr.sbin/traceroute6/
H A Dtraceroute6.c341 static cap_channel_t *capdns; variable
631 error = cap_getaddrinfo(capdns, *argv, NULL, &hints, &res); in main()
650 if (cap_getnameinfo(capdns, res->ai_addr, res->ai_addrlen, hbuf, in main()
827 error = cap_getaddrinfo(capdns, source, "0", &hints, &res); in main()
863 if (cap_getnameinfo(capdns, (struct sockaddr *)&Src, Src.sin6_len, in main()
1460 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, in packet_ok()
1544 capdns = cap_service_open(casper, "system.dns"); in capdns_open()
1545 if (capdns == NULL) in capdns_open()
1547 if (cap_dns_type_limit(capdns, types, nitems(types)) < 0) in capdns_open()
1550 if (cap_dns_family_limit(capdns, families, nitems(families)) < 0) in capdns_open()
[all …]
/freebsd-13.1/contrib/traceroute/
H A 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-13.1/contrib/tcpdump/
H A 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()
H A Dtcpdump.c179 cap_channel_t *capdns; variable
1819 capdns = capdns_setup(); in main()
2046 cansandbox = (cansandbox && (ndo->ndo_nflag || capdns != NULL)); in main()
/freebsd-13.1/sbin/ping/
H A Dping.c215 static cap_channel_t *capdns; variable
582 capdns = capdns_setup(); in ping()
589 hp = cap_gethostbyname2(capdns, source, AF_INET); in ping()
617 hp = cap_gethostbyname2(capdns, target, AF_INET); in ping()
632 if (capdns != NULL) { in ping()
636 if (cap_dns_type_limit(capdns, types, 1) < 0) in ping()
1718 hp = cap_gethostbyaddr(capdns, (char *)&ina, 4, AF_INET); in pr_addr()
H A Dping6.c238 static cap_channel_t *capdns; variable
351 capdns = capdns_setup(); in ping6()
530 error = cap_getaddrinfo(capdns, optarg, NULL, &hints, &res); in ping6()
669 error = cap_getaddrinfo(capdns, target, NULL, &hints, &res); in ping6()
712 error = cap_getaddrinfo(capdns, gateway, NULL, &hints, &res); in ping6()
985 if ((error = cap_getaddrinfo(capdns, argv[hops], NULL, &hints, in ping6()
1002 if (capdns != NULL) { in ping6()
1006 if (cap_dns_type_limit(capdns, types, nitems(types)) < 0) in ping6()
2637 if (cap_getnameinfo(capdns, addr, addrlen, buf, sizeof(buf), NULL, 0, in pr_addr()