aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-01-20 15:00:15 +0100
committerAndrey Konovalov <andreyknvl@google.com>2017-01-23 18:17:15 +0100
commitf8ecf0862d4a680892ae28725003ea4d61b12cc0 (patch)
tree4ba59991f532aa16be53d895823b93f29fc94ba6 /executor
parentbb1ff0b5592262d20e88397f56f18e48d47d56ea (diff)
executor: change tun subnet to 172.20.*
Diffstat (limited to 'executor')
-rw-r--r--executor/common.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/executor/common.h b/executor/common.h
index f2d4487a3..987cad84f 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -218,8 +218,8 @@ int tunfd = -1;
#define LOCAL_MAC "aa:aa:aa:aa:aa:%02hx"
#define REMOTE_MAC "bb:bb:bb:bb:bb:%02hx"
-#define LOCAL_IPV4 "192.168.%d.170"
-#define REMOTE_IPV4 "192.168.%d.187"
+#define LOCAL_IPV4 "172.20.%d.170"
+#define REMOTE_IPV4 "172.20.%d.187"
#define LOCAL_IPV6 "fd00::%02hxaa"
#define REMOTE_IPV6 "fd00::%02hxbb"
@@ -231,9 +231,7 @@ static void initialize_tun(uint64_t pid)
if (pid >= MAX_PIDS)
fail("tun: no more than %d executors", MAX_PIDS);
- // IP addresses like 192.168.0.1/192.168.1.1 are often used for routing between VM and the host.
- // Offset our IP addresses to start from 192.168.218.0 to reduce potential conflicts.
- int id = pid + 250 - MAX_PIDS;
+ int id = pid;
tunfd = open("/dev/net/tun", O_RDWR);
if (tunfd == -1)