diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-04-14 12:51:47 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-04-14 12:57:17 +0100 |
commit | cfccdc22ca6d8f28d70a2546a495c9ead4bbb765 (patch) | |
tree | 645cd82dc16395007b6993a0537801f654fb9611 /system.h | |
parent | dbf97b47a53809a6ff812d4466d2082aa4d3efb6 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |