Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tun: windows: switch to NDIS device object | Jason A. Donenfeld | 2019-07-18 | 2 | -7/+6 |
| | |||||
* | wintun: calculate path of NDIS device object symbolic link | Jason A. Donenfeld | 2019-07-18 | 1 | -0/+20 |
| | |||||
* | tun: openbsd: don't change MTU when it's already the expected size | Michael Zeltner | 2019-07-18 | 1 | -4/+7 |
| | | | | | | Allows for running wireguard-go as non-root user. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | tun: windows: spin for a bit before falling back to event object | Jason A. Donenfeld | 2019-07-18 | 1 | -4/+19 |
| | |||||
* | tun: windows: implement ring buffers | Simon Rozman | 2019-07-17 | 1 | -186/+184 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | tun: windows: registration of write buffer no longer required | Jason A. Donenfeld | 2019-07-05 | 1 | -12/+1 |
| | |||||
* | tun: windows: decrease alignment to 4 | Jason A. Donenfeld | 2019-07-05 | 1 | -3/+3 |
| | |||||
* | tun: windows: delay initial write | Jason A. Donenfeld | 2019-07-04 | 1 | -16/+22 |
| | | | | Otherwise we provoke Wintun 0.3. | ||||
* | tun: windows: packetNum is unused | Jason A. Donenfeld | 2019-07-01 | 1 | -3/+0 |
| | |||||
* | tun: windows: inform wintun of maximum buffer length for writes | Jason A. Donenfeld | 2019-06-26 | 1 | -0/+6 |
| | |||||
* | tun: windows: never retry open on Windows 10 | Jason A. Donenfeld | 2019-06-18 | 2 | -4/+13 |
| | |||||
* | tun: remove TUN prefix from types to reduce stutter elsewhere | Matt Layher | 2019-06-14 | 6 | -51/+51 |
| | | | | Signed-off-by: Matt Layher <mdlayher@gmail.com> | ||||
* | 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 | 2 | -124/+55 |
| | | | | 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 | 2 | -2/+29 |
| | |||||
* | setupapi: add DeviceInstanceID() | Jason A. Donenfeld | 2019-06-10 | 3 | -0/+41 |
| | |||||
* | global: fixup TODO comment spacing | Jason A. Donenfeld | 2019-06-06 | 6 | -10/+10 |
| | |||||
* | wintun: guid functions are upstream | Jason A. Donenfeld | 2019-06-06 | 5 | -117/+11 |
| | |||||
* | wintun: simplify DeleteInterface method signature | Simon Rozman | 2019-06-06 | 2 | -58/+79 |
| | | | | 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. | ||||
* | tun: windows: obsolete 256 packets per exchange buffer limitation | Simon Rozman | 2019-06-05 | 1 | -2/+1 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | 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> | ||||
* | tun: windows: mitigate infinite loop in Flush() | Jason A. Donenfeld | 2019-05-31 | 1 | -29/+35 |
| | | | | | It's possible that for whatever reason, we keep returning EOF, resulting in repeated close/open/write operations, except with empty packets. | ||||
* | device, tun: rearrange code and fix device tests | Matt Layher | 2019-05-29 | 1 | -93/+0 |
| | | | | Signed-off-by: Matt Layher <mdlayher@gmail.com> | ||||
* | wintun: remove extra / | Jason A. Donenfeld | 2019-05-26 | 1 | -1/+1 |
| | |||||
* | wintun: revise GetInterface() | Simon Rozman | 2019-05-24 | 2 | -3/+6 |
| | | | | | | | | | | | - 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 | 5 | -53/+53 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: don't try to flush interface, but rather delete | Jason A. Donenfeld | 2019-05-17 | 2 | -25/+8 |
| | |||||
* | wintun: make certain methods private | Jason A. Donenfeld | 2019-05-17 | 2 | -33/+41 |
| | |||||
* | wintun: change acronyms to uppercase | Simon Rozman | 2019-05-17 | 1 | -5/+5 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | global: regroup all imports | Jason A. Donenfeld | 2019-05-14 | 6 | -11/+16 |
| | |||||
* | 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: add LUID accessor | Jason A. Donenfeld | 2019-05-10 | 1 | -0/+7 |
| | |||||
* | 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 | 7 | -133/+534 |
| | | | | | | 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> |