Missing 'name' in /sbin/ip macvlan
authorRobert Swiecki <swiecki@google.com>
Mon, 29 Feb 2016 16:56:03 +0000 (17:56 +0100)
committerRobert Swiecki <swiecki@google.com>
Mon, 29 Feb 2016 16:56:03 +0000 (17:56 +0100)
net.c

diff --git a/net.c b/net.c
index fee16aad2661e52e75f97637564f961f8f7af375..c8139d0eb6d661a63bf9f56b1546334f5b3ac2e4 100644 (file)
--- a/net.c
+++ b/net.c
@@ -97,7 +97,8 @@ bool netCloneMacVtapAndNS(struct nsjconf_t *nsjconf, int pid)
        snprintf(iface, sizeof(iface), "NS.TAP.%d", pid);
 
        char *const argv_add[] =
-           { "ip", "link", "add", "link", (char *)nsjconf->iface, iface, "type", "macvlan", "mode",
+           { "ip", "link", "add", "link", (char *)nsjconf->iface, "name", iface, "type", "macvlan",
+"mode",
                "bridge", NULL
        };
        if (netSystemSbinIp(nsjconf, argv_add) == false) {