diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-05-04 20:10:49 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-05-04 20:10:49 -0700 |
commit | e5e90b1f71c34f9f239c85a3967fea8520706651 (patch) | |
tree | a751da35b15214282a9a51ac27569bc496623dc6 /service/OneService.cpp | |
parent | d5ed0258712af85e7cc0f9de75e963e56f0e7695 (diff) | |
download | infinitytier-e5e90b1f71c34f9f239c85a3967fea8520706651.tar.gz infinitytier-e5e90b1f71c34f9f239c85a3967fea8520706651.zip |
Wire MTU through to service.
Diffstat (limited to 'service/OneService.cpp')
-rw-r--r-- | service/OneService.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index 9bfb310b..1fabb7d9 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -2082,16 +2082,17 @@ public: memcpy(&(n.config),nwc,sizeof(ZT_VirtualNetworkConfig)); if (n.tap) { // sanity check #ifdef __WINDOWS__ - // wait for up to 5 seconds for the WindowsEthernetTap to actually be initialized - // - // without WindowsEthernetTap::isInitialized() returning true, the won't actually - // be online yet and setting managed routes on it will fail. - const int MAX_SLEEP_COUNT = 500; - for (int i = 0; !n.tap->isInitialized() && i < MAX_SLEEP_COUNT; i++) { - Sleep(10); - } + // wait for up to 5 seconds for the WindowsEthernetTap to actually be initialized + // + // without WindowsEthernetTap::isInitialized() returning true, the won't actually + // be online yet and setting managed routes on it will fail. + const int MAX_SLEEP_COUNT = 500; + for (int i = 0; !n.tap->isInitialized() && i < MAX_SLEEP_COUNT; i++) { + Sleep(10); + } #endif syncManagedStuff(n,true,true); + n.tap->setMtu(nwc->mtu); } else { _nets.erase(nwid); return -999; // tap init failed |