diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-02-22 20:16:37 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-02-22 20:16:37 +0100 |
| commit | 6153a72ee16f1e7a1b1400bf4d89bb39e52343ce (patch) | |
| tree | 8a42690713cf5605a329e57cfb3be87365fc632a /pkg/csource/linux_common.go | |
| parent | 907d649fc3b6465bf58a79766a267006e0da453c (diff) | |
executor: bring up bond and veth devices
Diffstat (limited to 'pkg/csource/linux_common.go')
| -rw-r--r-- | pkg/csource/linux_common.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/csource/linux_common.go b/pkg/csource/linux_common.go index d45a48862..dc917fed2 100644 --- a/pkg/csource/linux_common.go +++ b/pkg/csource/linux_common.go @@ -505,14 +505,15 @@ static void initialize_tun(int id) static void initialize_netdevices(int id) { unsigned i; - const char* devtypes[] = {"ip6gretap", "bridge", "vcan"}; + const char* devtypes[] = {"ip6gretap", "bridge", "vcan", "bond", "veth"}; const char* devnames[] = {"lo", "sit0", "bridge0", "vcan0", "tunl0", "gre0", "gretap0", "ip_vti0", "ip6_vti0", "ip6tnl0", "ip6gre0", "ip6gretap0", - "erspan0"}; + "erspan0", "bond0", "veth0", "veth1"}; for (i = 0; i < sizeof(devtypes) / (sizeof(devtypes[0])); i++) execute_command(0, "ip link add dev %s0 type %s", devtypes[i], devtypes[i]); + execute_command(0, "ip link add dev veth1 type veth"); for (i = 0; i < sizeof(devnames) / (sizeof(devnames[0])); i++) { char addr[ADDR_MAX_LEN]; snprintf_check(addr, sizeof(addr), DEV_IPV4, id, id + 10); |
