Tizen does not support libnl3 net namespace officially because libnl3 version is 3.2.22.
At this moment, malort project does not require network virtualization.
Thus, at this moment, it is ok to disable Tizen.
In the future, when libnl3 is upgraded to over 3.2.24, net namespace feature will be enabled.
}
#endif
+#ifndef TIZEN
static bool moveToNs(
const std::string& iface, struct nl_sock* sk, struct nl_cache* link_cache, pid_t pid) {
LOG_D("Moving interface '%s' into netns=%d", iface.c_str(), (int)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) {
rtnl_link_put(orig_link);
return true;
}
+#else
+static bool moveToNs(
+ const std::string& iface, struct nl_sock* sk, struct nl_cache* link_cache, pid_t pid) {
+ return true;
+}
+#endif
+
bool initNsFromParent(nsjconf_t* nsjconf, int pid) {
if (!nsjconf->clone_newnet) {