Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | wintun: take mutex first always | Jason A. Donenfeld | 2019-09-01 | 1 | -9/+9 |
| | | | | This prevents an ABA deadlock with setupapi's internal locks. | ||||
* | wintun: consider abandoned mutexes as released | Jason A. Donenfeld | 2019-09-01 | 1 | -1/+1 |
| | |||||
* | wintun: put mutex into private namespace | Jason A. Donenfeld | 2019-08-30 | 3 | -26/+99 |
| | |||||
* | namespaceapi: fix mistake | Jason A. Donenfeld | 2019-08-30 | 2 | -4/+4 |
| | |||||
* | namespaceapi: initial version | Simon Rozman | 2019-08-30 | 3 | -0/+207 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: take mutex so that deletion uses the right name | Jason A. Donenfeld | 2019-08-30 | 1 | -9/+70 |
| | |||||
* | wintun: move ring constants into module | Jason A. Donenfeld | 2019-08-29 | 2 | -2/+99 |
| | |||||
* | wintun: delete all interfaces is not used anymore | Jason A. Donenfeld | 2019-08-29 | 1 | -9/+0 |
| | |||||
* | wintun: Wintun->Interface | Jason A. Donenfeld | 2019-08-29 | 1 | -27/+26 |
| | |||||
* | wintun: keep reference to pool in wintun object | Jason A. Donenfeld | 2019-08-29 | 1 | -7/+9 |
| | |||||
* | wintun: introduce adapter pools | Simon Rozman | 2019-08-29 | 1 | -21/+45 |
| | | | | | | This makes wintun package reusable for non-WireGuard applications. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: simplify rename logic | Jason A. Donenfeld | 2019-08-28 | 1 | -5/+4 |
| | |||||
* | wintun: give better errors when ndis interface listing fails | Jason A. Donenfeld | 2019-08-28 | 1 | -2/+2 |
| | |||||
* | wintun: also check for numbered suffix and friendly name | Jason A. Donenfeld | 2019-08-28 | 1 | -9/+22 |
| | |||||
* | wintun: upgrade deleting all interfaces and make it reusable | Simon Rozman | 2019-08-28 | 1 | -4/+29 |
| | | | | | | | | | | | DeleteAllInterfaces() didn't check if SPDRP_DEVICEDESC == "WireGuard Tunnel". It deleted _all_ Wintun adapters, not just WireGuard's. Furthermore, the DeleteAllInterfaces() was upgraded into a new function called DeleteMatchingInterfaces() for selectively deletion. This will be used by WireGuard to clean stale Wintun adapters. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: cleanup earlier | Jason A. Donenfeld | 2019-08-27 | 1 | -19/+20 |
| | |||||
* | wintun: rename duplicate adapters instead of ourselves | Jason A. Donenfeld | 2019-08-27 | 4 | -0/+118 |
| | |||||
* | wintun: match suffix numbers | Jason A. Donenfeld | 2019-08-26 | 1 | -1/+8 |
| | |||||
* | wintun: make description consistent across fields | Jason A. Donenfeld | 2019-08-24 | 1 | -12/+9 |
| | |||||
* | wintun: try multiple names until one isn't a duplicate | Jason A. Donenfeld | 2019-08-22 | 1 | -4/+12 |
| | |||||
* | wintun: use nci.dll directly instead of buggy netshell | Jason A. Donenfeld | 2019-08-21 | 5 | -84/+102 |
| | |||||
* | wintun: set friendly a bit better | Jason A. Donenfeld | 2019-08-20 | 1 | -22/+10 |
| | | | | | This is still wrong, but NETSETUPPKEY_Driver_FriendlyName seems a bit tricky to use. | ||||
* | wintun: also set friendly name after setting interface name | Jason A. Donenfeld | 2019-08-19 | 1 | -8/+23 |
| | |||||
* | wintun: defer requires unique variable | Jason A. Donenfeld | 2019-08-19 | 1 | -33/+22 |
| | |||||
* | wintun: set adapter description name | Jason A. Donenfeld | 2019-08-19 | 1 | -0/+24 |
| | |||||
* | wintun: merge opening device registry key | Simon Rozman | 2019-08-02 | 1 | -21/+15 |
| | | | | | | | | | This also introduces waiting for key to appear on initial access. See if this resolves the issue caused by HDD power-up delay resulting in failure to create the adapter. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: simplify checking reboot requirement | Simon Rozman | 2019-08-02 | 1 | -18/+7 |
| | | | | | | We never checked checkReboot() reported error anyway. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: refactor `err == nil` error checking | Simon Rozman | 2019-08-02 | 2 | -133/+166 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: handle error for deadgwdetect | Jason A. Donenfeld | 2019-08-02 | 1 | -2/+3 |
| | |||||
* | wintun: get interface path properly with cfgmgr | Jason A. Donenfeld | 2019-07-23 | 4 | -30/+93 |
| | |||||
* | wintun: simplify resolution of dev node | Jason A. Donenfeld | 2019-07-23 | 1 | -13/+10 |
| | |||||
* | wintun: enable sharing of pnp node | Jason A. Donenfeld | 2019-07-22 | 1 | -1/+1 |
| | |||||
* | tun: windows: get rid of retry logic | Jason A. Donenfeld | 2019-07-19 | 1 | -5/+9 |
| | | | | Things work fine on Windows 8. | ||||
* | tun: windows: switch to NDIS device object | Jason A. Donenfeld | 2019-07-18 | 1 | -5/+0 |
| | |||||
* | wintun: calculate path of NDIS device object symbolic link | Jason A. Donenfeld | 2019-07-18 | 1 | -0/+20 |
| | |||||
* | tun: windows: never retry open on Windows 10 | Jason A. Donenfeld | 2019-06-18 | 1 | -1/+1 |
| | |||||
* | wintun: increase registry timeout | Jason A. Donenfeld | 2019-06-11 | 1 | -1/+1 |
| | |||||
* | wintun: add helper for cleaning up | Jason A. Donenfeld | 2019-06-10 | 1 | -9/+82 |
| | |||||
* | wintun: simplify error matching and remove dumb comments | Jason A. Donenfeld | 2019-06-10 | 1 | -19/+4 |
| | |||||
* | wintun: fix comments and remove hwnd param | Jason A. Donenfeld | 2019-06-10 | 1 | -119/+50 |
| | | | | This now looks more idiomatic. | ||||
* | setupapi: add SetDeviceRegistryPropertyString description | Simon Rozman | 2019-06-10 | 1 | -1/+2 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: unify ERROR_INSUFFICIENT_BUFFER handling | Simon Rozman | 2019-06-10 | 1 | -58/+32 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: allow controlling GUID | Jason A. Donenfeld | 2019-06-10 | 1 | -1/+20 |
| | |||||
* | setupapi: add DeviceInstanceID() | Jason A. Donenfeld | 2019-06-10 | 3 | -0/+41 |
| | |||||
* | global: fixup TODO comment spacing | Jason A. Donenfeld | 2019-06-06 | 1 | -4/+4 |
| | |||||
* | wintun: guid functions are upstream | Jason A. Donenfeld | 2019-06-06 | 5 | -117/+11 |
| | |||||
* | wintun: simplify DeleteInterface method signature | Simon Rozman | 2019-06-06 | 1 | -56/+77 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: don't run HrRenameConnection in separate thread | Jason A. Donenfeld | 2019-06-05 | 1 | -3/+2 |
| | | | | | It's very slow, but unfortunately we haven't a choice. NLA needs this to have completed. | ||||
* | setupapi, wintun: replace syscall with golang.org/x/sys/windows | Simon Rozman | 2019-06-04 | 4 | -36/+32 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: set DI_QUIETINSTALL flag for GUI-less device management | Simon Rozman | 2019-06-04 | 1 | -3/+26 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> |