diff options
Diffstat (limited to 'src/fnet/veth.c')
-rw-r--r-- | src/fnet/veth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fnet/veth.c b/src/fnet/veth.c index fb4f3dc31..36362f1c1 100644 --- a/src/fnet/veth.c +++ b/src/fnet/veth.c | |||
@@ -176,6 +176,7 @@ int net_create_macvlan(const char *dev, const char *parent, unsigned pid) { | |||
176 | return 0; | 176 | return 0; |
177 | } | 177 | } |
178 | 178 | ||
179 | #ifdef IPVLAN_MODE_L2 | ||
179 | int net_create_ipvlan(const char *dev, const char *parent, unsigned pid) { | 180 | int net_create_ipvlan(const char *dev, const char *parent, unsigned pid) { |
180 | int len; | 181 | int len; |
181 | struct iplink_req req; | 182 | struct iplink_req req; |
@@ -237,7 +238,7 @@ int net_create_ipvlan(const char *dev, const char *parent, unsigned pid) { | |||
237 | 238 | ||
238 | return 0; | 239 | return 0; |
239 | } | 240 | } |
240 | 241 | #endif | |
241 | 242 | ||
242 | // move the interface dev in namespace of program pid | 243 | // move the interface dev in namespace of program pid |
243 | // when the interface is moved, netlink does not preserve interface configuration | 244 | // when the interface is moved, netlink does not preserve interface configuration |