aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-02-07 16:59:49 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-02-10 10:51:16 +0100
commit4f86d327735efede368648e63570189966cb30c0 (patch)
treed98388d9db9c361c133b3d2620f62342e7c3f184 /executor/common_linux.h
parent2c71f1a9122cc3cb0abacbbec6359c40db02be35 (diff)
wireguard: use wg0, wg1, wg2
This matches more closely what people are used to dealing with. We also add one additional device for interesting multi-interface effects.
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index a1532e438..5120bc8b9 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -793,8 +793,9 @@ static void initialize_netdevices(void)
// This adds connected veth0 and veth1 devices.
{"veth", 0},
{"xfrm", "xfrm0"},
- {"wireguard", "wireguard0"},
- {"wireguard", "wireguard1"},
+ {"wireguard", "wg0"},
+ {"wireguard", "wg1"},
+ {"wireguard", "wg2"},
};
const char* devmasters[] = {"bridge", "bond", "team", "batadv"};
// If you extend this array, also update netdev_addr_id in vnet.txt
@@ -859,8 +860,9 @@ static void initialize_netdevices(void)
{"batadv_slave_1", ETH_ALEN},
{"geneve0", ETH_ALEN},
{"geneve1", ETH_ALEN},
- {"wireguard0", 0},
- {"wireguard1", 0},
+ {"wg0", 0},
+ {"wg1", 0},
+ {"wg2", 0},
};
int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
if (sock == -1)