Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-05-17 | version: bump snapshot | Jason A. Donenfeld | |
2019-05-17 | makefile: do not show warning on non-linux | Jason A. Donenfeld | |
2019-05-17 | wintun: change acronyms to uppercase | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
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: add LUID accessor | 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 | conn: remove scope when sanity checking IP address format | Jason A. Donenfeld | |
2019-05-09 | wintun: fix GUID leading zero padding | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-05-03 | mod: update deps | Jason A. Donenfeld | |
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-29 | go.mod: use vendored winio | Jason A. Donenfeld | |
2019-04-23 | tun: freebsd: work around numerous kernel panics on shutdown | Jason A. Donenfeld | |
There are numerous race conditions. But even this will crash it: while true; do ifconfig tun0 create; ifconfig tun0 destroy; done It seems like LLv6 is related, which we're not using anyway, so explicitly disable it on the interface. | |||
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-19 | tun: darwin: write routeSocket variable in helper | Jason A. Donenfeld | |
Otherwise the race detector "complains". | |||
2019-04-19 | main: revise warnings | Jason A. Donenfeld | |
2019-04-18 | device: send: check packet length before freeing element | 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-13 | conn: linux: RTA_MARK has moved to x/sys | Jason A. Donenfeld | |
2019-04-11 | tun: windows: Adopt new error codes returned by Wintun | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-04-11 | tun: windows: do not sleep after OPERATION_ABORTED on write | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-04-09 | main_windows: use proper version constant | Jason A. Donenfeld | |
2019-04-09 | version: put version in right place | Jason A. Donenfeld | |
2019-04-09 | version: bump snapshot | Jason A. Donenfeld | |
2019-04-09 | tun: windows: do not sleep after OPERATION_ABORTED | Jason A. Donenfeld | |
2019-04-04 | tun: windows: Retry R/W on ERROR_OPERATION_ABORTED | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-04-03 | tun: windows: Attempt to reopen handle on all errors | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
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 | |
2019-03-26 | tun: windows: cancel ongoing reads on closing and delete after close | Jason A. Donenfeld | |
This reverts commit 52ec440d7977fad966002c3710ed9df957943407 and adds some spice. | |||
2019-03-22 | wintun: query for NetCfgInstanceId several times | Jason A. Donenfeld | |
2019-03-22 | tun: windows: delete interface before deleting file handles | Jason A. Donenfeld | |
2019-03-22 | tun: windows: Make adapter rename asynchronous | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-22 | tun: windows: Adapter devices renamed to WINTUN<LUID Index> | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-22 | tun: windows: Increase unavailable adapter timeout to 30sec | Simon Rozman | |
5 seconds was too short when debugging. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-22 | tun: windows: Make writing persistent too | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-22 | tun: windows: Fix paused adapter test | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> |