Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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> | ||||
* | setupapi: define PropChangeParams struct | Simon Rozman | 2019-06-04 | 1 | -1/+20 |
| | | | | | | | This structure is required for calling DIF_PROPERTYCHANGE installer class. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: revise GetInterface() | Simon Rozman | 2019-05-24 | 1 | -3/+4 |
| | | | | | | | | | | | - Make foreign interface found error numeric to ease condition detection. - Update GetInterface() documentation. - Make tun.CreateTUN() quit when foreign interface found before attempting to create a Wintun interface with a duplicate name. Creation is futile. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: never return nil, nil | Jason A. Donenfeld | 2019-05-23 | 1 | -1/+1 |
| | |||||
* | setupapi: trim "Get" from getters | Simon Rozman | 2019-05-22 | 4 | -52/+52 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: don't try to flush interface, but rather delete | Jason A. Donenfeld | 2019-05-17 | 1 | -9/+0 |
| | |||||
* | wintun: make certain methods private | Jason A. Donenfeld | 2019-05-17 | 1 | -23/+38 |
| | |||||
* | global: regroup all imports | Jason A. Donenfeld | 2019-05-14 | 1 | -1/+1 |
| | |||||
* | wintun: registry: fix nits | Jason A. Donenfeld | 2019-05-11 | 1 | -17/+20 |
| | |||||
* | wintun: registry: revise value reading | Simon Rozman | 2019-05-11 | 2 | -67/+82 |
| | | | | | | | | | | | | | | - Make getStringValueRetry() reusable for reading any value type. This merges code from GetIntegerValueWait(). - expandString() >> toString() and extend to support REG_MULTI_SZ (to return first value of REG_MULTI_SZ). Furthermore, doing our own UTF-16 to UTF-8 conversion works around a bug in windows/registry's GetStringValue() non-zero terminated string handling. - Provide toInteger() analogous to toString() - GetStringValueWait() tolerates and reads REG_MULTI_SZ too now. It returns REG_MULTI_SZ[0], making GetFirstStringValueWait() redundant. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: call HrRenameConnection in another thread | Jason A. Donenfeld | 2019-05-10 | 1 | -2/+3 |
| | |||||
* | wintun: enumerate faster by using COMPATDRIVER instead of CLASSDRIVER | Jason A. Donenfeld | 2019-05-10 | 1 | -1/+1 |
| | |||||
* | wintun: destroy devinfolist after usage | Jason A. Donenfeld | 2019-05-10 | 1 | -0/+1 |
| | |||||
* | wintun: registry: replace REG_NOTIFY with NOTIFY | Simon Rozman | 2019-05-10 | 3 | -13/+9 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: IpConfig is a MULTI_SZ, and fix errors | Jason A. Donenfeld | 2019-05-10 | 2 | -49/+72 |
| | |||||
* | wintun: poll for device key | Jason A. Donenfeld | 2019-05-10 | 1 | -9/+10 |
| | | | | It's actually pretty hard to guess where it is. | ||||
* | wintun: fix scope of error object | Jason A. Donenfeld | 2019-05-10 | 1 | -5/+6 |
| | |||||
* | wintun: wait for interface registry key on device creation | Simon Rozman | 2019-05-10 | 6 | -109/+518 |
| | | | | | | By using RegNotifyChangeKeyValue(). Also disable dead gateway detection. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: fix GUID leading zero padding | Simon Rozman | 2019-05-09 | 1 | -1/+1 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: safer aliasing of slice types | Jason A. Donenfeld | 2019-05-03 | 5 | -23/+40 |
| | |||||
* | wintun: work around GetInterface staleness bug | Jason A. Donenfeld | 2019-05-03 | 1 | -2/+2 |
| |