From 4f86d327735efede368648e63570189966cb30c0 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 7 Feb 2020 16:59:49 +0100 Subject: 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. --- executor/common_linux.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'executor/common_linux.h') 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) -- cgit mrf-deployment