interface, system: clean up netns functionality
authorDaniel Golle <daniel@makrotopia.org>
Tue, 14 Apr 2020 11:51:47 +0000 (12:51 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 14 Apr 2020 11:57:17 +0000 (12:57 +0100)
commitcfccdc22ca6d8f28d70a2546a495c9ead4bbb765
tree645cd82dc16395007b6993a0537801f654fb9611
parentdbf97b47a53809a6ff812d4466d2082aa4d3efb6
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>
interface.c
system-dummy.c
system-linux.c
system.h