#define IFACE_NAME "vs"
#include <netlink/route/link.h>
-#include <netlink/route/link/macvlan.h>
+#ifndef TIZEN
+#include <netlink/route/link/macvlan.h>
static bool cloneIface(
nsjconf_t* nsjconf, struct nl_sock* sk, struct nl_cache* link_cache, int pid) {
struct rtnl_link* rmv = rtnl_link_macvlan_alloc();
rtnl_link_put(rmv);
return true;
}
+#else
+static bool cloneIface(
+ nsjconf_t* nsjconf, struct nl_sock* sk, struct nl_cache* link_cache, int pid) {
+ LOG_E("Tizen does not support macvlan officially");
+ return false;
+}
+#endif
static bool moveToNs(
const std::string& iface, struct nl_sock* sk, struct nl_cache* link_cache, pid_t pid) {
return false;
}
+#ifndef TIZEN
rtnl_link_set_ns_pid(new_link, pid);
+#endif
int err = rtnl_link_change(sk, orig_link, new_link, RTM_SETLINK);
if (err < 0) {