diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-11-03 15:00:15 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-11-03 15:00:15 +0100 |
| commit | 99d946ccff4e757395f5607f06645c79c2c951df (patch) | |
| tree | c7234fee2110e4aeab8a637e15a0d1251f933ce7 /executor/common_linux.h | |
| parent | 2079602763074ecfff9e9793649fc215faf7a5e1 (diff) | |
executor: fix setup of vxcan
Adding vxcan1 also adds vxcan0. Setup and use both.
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 0b7e15a63..5dbd5a56c 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -587,7 +587,7 @@ static void initialize_netdevices(void) {"nlmon", "nlmon0"}, {"caif", "caif0"}, {"batadv", "batadv0"}, - // Note: adding device vxcan0 fails. + // Note: this adds vxcan0/vxcan1 pair, similar to veth (creating vxcan0 would fail). {"vxcan", "vxcan1"}, // Note: netdevsim devices can't have the same name even in different namespaces. {"netdevsim", netdevsim}, @@ -629,6 +629,7 @@ static void initialize_netdevices(void) {"hsr0", 0}, {"dummy0", ETH_ALEN}, {"nlmon0", 0}, + {"vxcan0", 0, true}, {"vxcan1", 0, true}, {"caif0", ETH_ALEN}, // TODO: up'ing caif fails with ENODEV {"batadv0", ETH_ALEN}, |
