projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62eda3c
)
Change macvtap into macvlan mode bridge
author
Robert Swiecki
<swiecki@google.com>
Mon, 29 Feb 2016 16:46:36 +0000
(17:46 +0100)
committer
Robert Swiecki
<swiecki@google.com>
Mon, 29 Feb 2016 16:46:36 +0000
(17:46 +0100)
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index b2406df71bafb4c073516b334c4725d12eb30262..f32f070dd04a64d9dcc5a5e37199102374514414 100644
(file)
--- a/
net.c
+++ b/
net.c
@@
-97,7
+97,9
@@
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", "macvtap", NULL };
+ { "ip", "link", "add", "link", (char *)nsjconf->iface, iface, "type", "macvlan", "mode",
+ "bridge", NULL
+ };
if (netSystemSbinIp(nsjconf, argv_add) == false) {
LOG_E("Couldn't create MACVTAP interface for '%s'", nsjconf->iface);
return false;