interface: allow renaming interface when moving to jail netns
[project/netifd.git] / system-dummy.c
index 9c37bd59c0693e2b974fc66a95d11bc67ab35f87..2669a3496e3d7d6ffb081f5099f78d02131db4ae 100644 (file)
@@ -54,9 +54,9 @@ int system_bridge_delif(struct device *bridge, struct device *dev)
        return 0;
 }
 
-int system_link_netns_move(const char *ifname, int netns_fd)
+int system_link_netns_move(const char *ifname, int netns_fd, const char *target_ifname)
 {
-       D(SYSTEM, "ip link %s netns %d\n", ifname, netns_fd);
+       D(SYSTEM, "ip link dev %s name %s netns %d\n", ifname, target_ifname, netns_fd);
        return 0;
 }