summaryrefslogtreecommitdiff
path: root/osdep/WindowsEthernetTap.cpp
AgeCommit message (Collapse)Author
2019-07-16Finally figured out how to update the network interface names on Windows so ↵Grant Limberg
that they'll be visible in `ipconfig`, `Get-NetAdapter` etc.
2019-01-14Updated licenses for 2019Joseph Henry
2018-02-23TAP driver requires input and output buffers for calls passed into ↵Grant Limberg
DeviceIoControl Otherwise the driver returns STATUS_INVALID_PARAMETER and the call fails. This should fix some Multicast issues on Windows
2018-01-30Fix Windows compile error.Adam Ierymenko
2018-01-08Copyright updates for 2018.Adam Ierymenko
2017-10-16call setFriendlyName() after tap adapter is initializedGrant Limberg
2017-07-06Windows build fixes.Adam Ierymenko
2017-07-06Cleanup.Adam Ierymenko
2017-06-27Rename Utils::snprintf due to it being a #define on one platform.Adam Ierymenko
2017-05-04Support MTU reconfigure for Windows.Adam Ierymenko
2017-05-04MTU integration in taps.Adam Ierymenko
2017-04-27License header update.Adam Ierymenko
2017-03-27Add thread PTR that gets passed through the entire ZT core call stack and ↵Adam Ierymenko
then passed to handler functions resulting from a call.
2017-01-05Potential fix for routing issue on WindowsGrant Limberg
Move setting _initialized = true until after WindowsEthernetTap::threadMain() has actually created and brought up the adapter. Also in OneService::nodeVirtualNetworkConfigFunction(), wait up to 5 seconds for WindowsEthernatTap::isInitialized() to return true before attempting to configure the interface and managed routes. Without this, the adapter doesnt actually exist yet when trying to add routes
2016-12-09Dont write IPv6 addresses to IPv4 sections of registry TCPIP settings.Grant Limberg
Also, dont add the prefix length to the IP addresses in there. Appears to fix Github Issue #357. Still waiting on some info from Microsoft for confirmation of a few things.
2016-11-30Store MTU as String instead of DWORDGrant Limberg
WindowsEthernetTap was storing the MTU for the ZeroTier Adapter as a DWORD. When changing the value from the network adapter settings UI, it was stored as a string. Updated the call when creating the adapter to store it as a string as windows expects.
2016-06-21Route management now works on Windows, including default route override! ↵Adam Ierymenko
1.1.6 very close!
2016-03-02More Windows tweaks and a compile fix.Adam Ierymenko
2016-03-02Tweaks to WindowsEthernetTap to attempt to address GitHub issue #308 and/or ↵Adam Ierymenko
GitHub issue #277 -- we can't reproduce yet but I found one area where a spin was possible under certain failure conditions. Maybe.
2016-01-12boring doc stuffAdam Ierymenko
2015-11-13Fix: (1) Windows stack overflow due to buffer too large in peer deserialize, ↵Adam Ierymenko
(2) clean up some other stuff seen during debugging and reduce the sizes of some buffers due to Windows small stack size, (3) remove a redundant try/catch.
2015-08-13Manually set DeviceInstanceID since this registry key is missing on Windows ↵Adam Ierymenko
Vista and Server 2008.
2015-07-30Because Windows, because Windows. Now it upgrades correctly from 1.0.1, ↵Adam Ierymenko
including automatic driver update from NDIS5 to NDIS6. Also a bit more robust on creating new ports, just in case.
2015-07-30Save enumeration of statically assigned IPs so they will always be ↵Adam Ierymenko
reassigned on device "power cycle."
2015-07-30Because Windows.Adam Ierymenko
2015-07-30Kill the devcon.exe dependency by dynamically loading cfgmgr32, newdev, and ↵Adam Ierymenko
setupapi and using these functions directly.
2015-07-06Another attempt at a fix for all the Windows driver coma issues.Adam Ierymenko
2015-06-12This might be a final fix for GitHub issue #173 and possibly others: ↵Adam Ierymenko
ACTIVELY detect borked port status on Windows and if any "cable unplugged" or other wacky states are detected whack the adapter (close and reopen). Tested adding a whole bunch of windows networks, removing, adding more, etc. and it seems to work very well!
2015-05-20Don't actually "power cycle" the interface except on startup. Doing that ↵Adam Ierymenko
after we're running could lose IP configuration.
2015-05-19Make tap driver even more defensive... seems to maybe fix the new network ↵Adam Ierymenko
problem. Have to test a bit more.
2015-05-19Windows build warning removal, be more defensive in Windows tap driver code, ↵Adam Ierymenko
and clean up service start/stop in installer.
2015-05-08Fix to tap reset code in Windows tap connector.Adam Ierymenko
2015-05-08Fix a bunch of Windows tap issues. Turns out NDIS6 allowed us to ditch some ↵Adam Ierymenko
NDIS5 cruft, but I did have to add one hack specific to that one instead. Seems reliable now.
2015-05-08Scratch that wrapper... it was easy to make, but it turns out WebControl is ↵Adam Ierymenko
IE4 (!!!?!). Also prefer NDIS5 to NDIS6 *if* NDIS5 is installed. We will no longer ship it, but this will make older installs use the same driver they are already using. Should ease upgrade.
2015-04-25Use NDIS6 driver preferentially if available.Adam Ierymenko
2015-04-24Destroy tap devices on Windows 'leave'.Adam Ierymenko
2015-04-24Windows now builds and runs selftest correctly, and fixed a Windows (and ↵Adam Ierymenko
possibly other platforms) issue in Phy<>.
2015-04-08osdep/ compile fixes, and remove some lingering OS-specific stuff from ↵Adam Ierymenko
node/Defaults
2015-03-31osnet -> osdepAdam Ierymenko