diff options
Diffstat (limited to 'src/firejail/veth.c')
-rw-r--r-- | src/firejail/veth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/veth.c b/src/firejail/veth.c index 45bf815aa..7797c6583 100644 --- a/src/firejail/veth.c +++ b/src/firejail/veth.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include "firejail.h" | 48 | #include "firejail.h" |
49 | #include "../include/libnetlink.h" | 49 | #include "../include/libnetlink.h" |
50 | #include <linux/veth.h> | 50 | #include <linux/veth.h> |
51 | #include <net/if.h> | ||
51 | 52 | ||
52 | struct iplink_req | 53 | struct iplink_req |
53 | { | 54 | { |
@@ -182,7 +183,6 @@ int net_create_macvlan(const char *dev, const char *parent, unsigned pid) { | |||
182 | // move the interface dev in namespace of program pid | 183 | // move the interface dev in namespace of program pid |
183 | // when the interface is moved, netlink does not preserve interface configuration | 184 | // when the interface is moved, netlink does not preserve interface configuration |
184 | int net_move_interface(const char *dev, unsigned pid) { | 185 | int net_move_interface(const char *dev, unsigned pid) { |
185 | int len; | ||
186 | struct iplink_req req; | 186 | struct iplink_req req; |
187 | if (arg_debug) | 187 | if (arg_debug) |
188 | printf("move device %s inside the namespace\n", dev); | 188 | printf("move device %s inside the namespace\n", dev); |