Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-08-02 | wintun: handle error for deadgwdetect | Jason A. Donenfeld | |
2019-07-23 | wintun: get interface path properly with cfgmgr | Jason A. Donenfeld | |
2019-07-23 | wintun: simplify resolution of dev node | Jason A. Donenfeld | |
2019-07-22 | wintun: enable sharing of pnp node | Jason A. Donenfeld | |
2019-07-19 | tun: windows: get rid of retry logic | Jason A. Donenfeld | |
Things work fine on Windows 8. | |||
2019-07-18 | tun: windows: switch to NDIS device object | Jason A. Donenfeld | |
2019-07-18 | wintun: calculate path of NDIS device object symbolic link | Jason A. Donenfeld | |
2019-06-18 | tun: windows: never retry open on Windows 10 | Jason A. Donenfeld | |
2019-06-11 | wintun: increase registry timeout | Jason A. Donenfeld | |
2019-06-10 | wintun: add helper for cleaning up | Jason A. Donenfeld | |
2019-06-10 | wintun: simplify error matching and remove dumb comments | Jason A. Donenfeld | |
2019-06-10 | wintun: fix comments and remove hwnd param | Jason A. Donenfeld | |
This now looks more idiomatic. | |||
2019-06-10 | setupapi: add SetDeviceRegistryPropertyString description | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-10 | setupapi: unify ERROR_INSUFFICIENT_BUFFER handling | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-10 | wintun: allow controlling GUID | Jason A. Donenfeld | |
2019-06-10 | setupapi: add DeviceInstanceID() | Jason A. Donenfeld | |
2019-06-06 | global: fixup TODO comment spacing | Jason A. Donenfeld | |
2019-06-06 | wintun: guid functions are upstream | Jason A. Donenfeld | |
2019-06-06 | wintun: simplify DeleteInterface method signature | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-05 | wintun: don't run HrRenameConnection in separate thread | Jason A. Donenfeld | |
It's very slow, but unfortunately we haven't a choice. NLA needs this to have completed. | |||
2019-06-04 | setupapi, wintun: replace syscall with golang.org/x/sys/windows | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-04 | wintun: set DI_QUIETINSTALL flag for GUI-less device management | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-04 | setupapi: define PropChangeParams struct | Simon Rozman | |
This structure is required for calling DIF_PROPERTYCHANGE installer class. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-05-24 | wintun: revise GetInterface() | Simon Rozman | |
- 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> | |||
2019-05-23 | wintun: never return nil, nil | Jason A. Donenfeld | |
2019-05-22 | setupapi: trim "Get" from getters | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-05-17 | wintun: don't try to flush interface, but rather delete | Jason A. Donenfeld | |
2019-05-17 | wintun: make certain methods private | Jason A. Donenfeld | |
2019-05-14 | global: regroup all imports | Jason A. Donenfeld | |
2019-05-11 | wintun: registry: fix nits | Jason A. Donenfeld | |
2019-05-11 | wintun: registry: revise value reading | Simon Rozman | |
- 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> | |||
2019-05-10 | wintun: call HrRenameConnection in another thread | Jason A. Donenfeld | |
2019-05-10 | wintun: enumerate faster by using COMPATDRIVER instead of CLASSDRIVER | Jason A. Donenfeld | |
2019-05-10 | wintun: destroy devinfolist after usage | Jason A. Donenfeld | |
2019-05-10 | wintun: registry: replace REG_NOTIFY with NOTIFY | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-05-10 | wintun: IpConfig is a MULTI_SZ, and fix errors | Jason A. Donenfeld | |
2019-05-10 | wintun: poll for device key | Jason A. Donenfeld | |
It's actually pretty hard to guess where it is. | |||
2019-05-10 | wintun: fix scope of error object | Jason A. Donenfeld | |
2019-05-10 | wintun: wait for interface registry key on device creation | Simon Rozman | |
By using RegNotifyChangeKeyValue(). Also disable dead gateway detection. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-05-09 | wintun: fix GUID leading zero padding | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-05-03 | setupapi: safer aliasing of slice types | Jason A. Donenfeld | |
2019-05-03 | wintun: work around GetInterface staleness bug | Jason A. Donenfeld | |
2019-05-02 | wintun: don't retry when not creating | Jason A. Donenfeld | |
The only time we're trying to counteract the race condition is when we're creating a driver. When we're simply looking up all drivers, it doesn't make sense to retry. | |||
2019-04-29 | wintun: try harder to open registry key | Jason A. Donenfeld | |
This sucks. Can we please find a deterministic way of doing this instead? | |||
2019-04-19 | setupapi: Fix struct size mismatches | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-04-19 | setupapi: actually fix padding by rounding up to sizeof(void*) | Jason A. Donenfeld | |
2019-04-18 | setupapi: Revise DrvInfoDetailData struct size calculation | Simon Rozman | |
Go adds trailing padding to DrvInfoDetailData struct in GOARCH=386 which confuses SetupAPI expecting exactly sizeof(SP_DRVINFO_DETAIL_DATA). Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-04-13 | windows: use proper constants from updated x/sys | Jason A. Donenfeld | |
2019-04-01 | wintun: rename device using undocumented API that netsh.exe uses | Jason A. Donenfeld | |
2019-04-01 | wintun: add more retry loops | Jason A. Donenfeld | |