net.c | 235 uint64_t ipstats[IP_NSTATS]; local in function:have_working_ipv4 236 size_t size = sizeof(ipstats); 239 if (sysctlbyname("net.inet.ip.stats", ipstats, &size, NULL, 0) == -1) 241 if (ipstats[IP_STAT_DELIVERED] < 10) /* arbitrary threshold */ 256 uint64_t ipstats[IP6_NSTATS]; local in function:have_working_ipv6 257 size_t size = sizeof(ipstats); 260 if (sysctlbyname("net.inet6.ip6.stats", ipstats, &size, NULL, 0) == -1) 262 if (ipstats[IP6_STAT_DELIVERED] < 10) /* arbitrary threshold */
|