feature_present
int inet_supported = feature_present("inet");
int inet6_supported = feature_present("inet6");
int feature_present(const char *);
if (feature_present("cuse") == 0)
if (!feature_present("inet"))
if (!feature_present("inet6"))
if (afp == NULL && feature_present("inet"))
if (sdom == AF_UNSPEC && feature_present("inet6"))
if (sdom == AF_UNSPEC && feature_present("inet"))
if (feature_present("inet") && !feature_present("inet6"))
else if (feature_present("inet6") && !feature_present("inet"))
if (feature_present(_feature_name) == 0) { \
if (feature_present(_feature_name) == 0) { \
if (feature_present("security_capabilities") == 0) {
ipv4 = feature_present("inet");
ipv6 = feature_present("inet6");
ip4ok = feature_present("inet");
ip6ok = feature_present("inet6");
ip6_ok = feature_present("inet6");
ip4_ok = feature_present("inet");