return ioctl(sock_ioctl, cmd, &ifr);
}
+#ifdef IFLA_IPTUN_MAX
static int system_add_gre_tunnel(const char *name, const char *kind,
const unsigned int link, struct blob_attr **tb, bool v6)
{
nlmsg_free(nlm);
return ret;
}
+#endif
static int __system_del_ip_tunnel(const char *name, struct blob_attr **tb)
{
}
}
#endif
+#ifdef IFLA_IPTUN_MAX
} else if (!strcmp(str, "ipip6")) {
struct nl_msg *nlm = nlmsg_alloc_simple(RTM_NEWLINK,
NLM_F_REQUEST | NLM_F_REPLACE | NLM_F_CREATE);
return system_add_gre_tunnel(name, "ip6gre", link, tb, true);
} else if (!strcmp(str, "gretapip6")) {
return system_add_gre_tunnel(name, "ip6gretap", link, tb, true);
+#endif
}
else
return -EINVAL;