summaryrefslogtreecommitdiffhomepage
path: root/system.h
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2020-04-14 12:51:47 +0100
committerDaniel Golle <daniel@makrotopia.org>2020-04-14 12:57:17 +0100
commitcfccdc22ca6d8f28d70a2546a495c9ead4bbb765 (patch)
tree645cd82dc16395007b6993a0537801f654fb9611 /system.h
parentdbf97b47a53809a6ff812d4466d2082aa4d3efb6 (diff)
interface, system: clean up netns functionality
Use struct device pointer as parameter instead of bare ifname allows for some simplication and again removing system_ifname_resolve() function introduced in commit d93126d. Fixes: d93126d ("interface: allow renaming interface when moving to jail netns") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'system.h')
-rw-r--r--system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/system.h b/system.h
index f8f8ec1..b377416 100644
--- a/system.h
+++ b/system.h
@@ -243,7 +243,7 @@ void system_fd_set_cloexec(int fd);
int system_update_ipv6_mtu(struct device *dev, int mtu);
-int system_link_netns_move(const char *ifname, const pid_t target_ns, const char *target_ifname);
+int system_link_netns_move(struct device *dev, const pid_t target_ns, const char *target_ifname);
int system_netns_open(const pid_t target_ns);
int system_netns_set(int netns_fd);