diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-01-20 15:00:15 +0100 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-01-23 18:17:15 +0100 |
| commit | f8ecf0862d4a680892ae28725003ea4d61b12cc0 (patch) | |
| tree | 4ba59991f532aa16be53d895823b93f29fc94ba6 /csource | |
| parent | bb1ff0b5592262d20e88397f56f18e48d47d56ea (diff) | |
executor: change tun subnet to 172.20.*
Diffstat (limited to 'csource')
| -rw-r--r-- | csource/common.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/csource/common.go b/csource/common.go index 004e5bbd2..48d645cc6 100644 --- a/csource/common.go +++ b/csource/common.go @@ -201,8 +201,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" @@ -214,7 +214,7 @@ static void initialize_tun(uint64_t pid) if (pid >= MAX_PIDS) fail("tun: no more than %d executors", MAX_PIDS); - int id = pid + 250 - MAX_PIDS; + int id = pid; tunfd = open("/dev/net/tun", O_RDWR); if (tunfd == -1) |
