Home
last modified time | relevance | path

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

/freebsd/usr.sbin/traceroute6/
H A Dtraceroute6.c328 static cap_channel_t *capdns; variable
629 error = cap_getaddrinfo(capdns, *argv, NULL, &hints, &res); in main()
648 if (cap_getnameinfo(capdns, res->ai_addr, res->ai_addrlen, hbuf, in main()
825 error = cap_getaddrinfo(capdns, source, "0", &hints, &res); in main()
861 if (cap_getnameinfo(capdns, (struct sockaddr *)&Src, Src.sin6_len, in main()
901 if (cap_getnameinfo(capdns, (struct sockaddr *)&Dst, Dst.sin6_len, hbuf, in main()
1341 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, in packet_ok()
1354 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, in packet_ok()
1476 if (cap_getnameinfo(capdns, (struct sockaddr *)from, from->sin6_len, in packet_ok()
1560 capdns = cap_service_open(casper, "system.dns"); in capdns_open()
[all …]
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.c349 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()
1859 if (capdns != NULL) in inetname()
1860 hp = cap_gethostbyname(capdns, domain); in inetname()
1878 if (capdns != NULL) in inetname()
1879 hp = cap_gethostbyaddr(capdns, (char *)&in, sizeof(in), in inetname()
1930 if (capdns != NULL) in gethostinfo()
[all …]
/freebsd/contrib/tcpdump/
H A Daddrtoname.c252 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 Daddrtoname.h26 extern cap_channel_t *capdns;
H A Dtcpdump.c2294 capdns = capdns_setup(); in main()
2601 cansandbox = (cansandbox && (ndo->ndo_nflag || capdns != NULL)); in main()
/freebsd/sbin/ping/
H A Dping.c185 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()
1601 hp = cap_gethostbyaddr(capdns, (char *)&ina, sizeof(ina), AF_INET); in pr_addr()
H A Dping6.c222 static cap_channel_t *capdns; variable
316 capdns = capdns_setup(); in ping6()
503 error = cap_getaddrinfo(capdns, optarg, NULL, &hints, &res); in ping6()
642 error = cap_getaddrinfo(capdns, target, NULL, &hints, &res); in ping6()
686 error = cap_getaddrinfo(capdns, gateway, NULL, &hints, &res); in ping6()
959 if ((error = cap_getaddrinfo(capdns, argv[hops], NULL, &hints, in ping6()
976 if (capdns != NULL) { in ping6()
980 if (cap_dns_type_limit(capdns, types, nitems(types)) < 0) in ping6()
2535 if (cap_getnameinfo(capdns, addr, addrlen, buf, sizeof(buf), NULL, 0, in pr_addr()