Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tun: make customization of WintunPool and requested GUID more obvious | Jason A. Donenfeld | 2021-01-07 | 1 | -10/+3 |
| | | | | | | | | | | | Persnickety consumers can now do: func init() { tun.WintunPool, _ = wintun.MakePool("Flurp") tun.WintunStaticRequestedGUID, _ = windows.GUIDFromString("{5ae2716f-0b3e-4dc4-a8b5-48eba11a6e16}") } Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | wintun: log when reboot is suggested by Windows | Simon Rozman | 2020-11-25 | 1 | -1/+5 |
| | | | | | | | Which really shouldn't happen. But it is a useful information for troubleshooting. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: keep original error when Wintun session start fails | Simon Rozman | 2020-11-25 | 1 | -1/+1 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | global: switch to using %w instead of %v for Errorf | Jason A. Donenfeld | 2020-11-07 | 1 | -6/+6 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | wintun: ring management moved to wintun.dll | Simon Rozman | 2020-11-07 | 1 | -86/+39 |
| | | | | | Signed-off-by: Simon Rozman <simon@rozman.si> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | wintun: migrate to wintun.dll API | Simon Rozman | 2020-11-07 | 1 | -10/+18 |
| | | | | | | | | Rather than having every application using Wintun driver reinvent the wheel, the Wintun device/adapter/interface management has been moved from wireguard-go to wintun.dll deployed with Wintun itself. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | global: update header comments and modules | Jason A. Donenfeld | 2020-05-02 | 1 | -1/+1 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | tun: windows: serialize write calls | Jason A. Donenfeld | 2020-01-07 | 1 | -0/+5 |
| | |||||
* | wintun: manage ring memory manually | Jason A. Donenfeld | 2019-11-22 | 1 | -3/+3 |
| | | | | | It's large and Go's garbage collector doesn't deal with it especially well. | ||||
* | tun: match windows CreateTUN signature to the Linux variant | Avery Pennarun | 2019-10-17 | 1 | -4/+9 |
| | | | | | Signed-off-by: Avery Pennarun <apenwarr@gmail.com> [zx2c4: fix default value] | ||||
* | wintun: expose version | Jason A. Donenfeld | 2019-10-08 | 1 | -0/+5 |
| | |||||
* | tun: windows: unify error message format | Jason A. Donenfeld | 2019-09-08 | 1 | -2/+2 |
| | |||||
* | wintun: take mutex so that deletion uses the right name | Jason A. Donenfeld | 2019-08-30 | 1 | -7/+1 |
| | |||||
* | wintun: move ring constants into module | Jason A. Donenfeld | 2019-08-29 | 1 | -94/+34 |
| | |||||
* | wintun: Wintun->Interface | Jason A. Donenfeld | 2019-08-29 | 1 | -10/+10 |
| | |||||
* | wintun: introduce adapter pools | Simon Rozman | 2019-08-29 | 1 | -5/+5 |
| | | | | | | This makes wintun package reusable for non-WireGuard applications. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: make description consistent across fields | Jason A. Donenfeld | 2019-08-24 | 1 | -1/+1 |
| | |||||
* | tun: windows: don't spin unless we really need it | Jason A. Donenfeld | 2019-08-19 | 1 | -10/+42 |
| | |||||
* | tun: windows: spin for only a millisecond/80 | Jason A. Donenfeld | 2019-08-03 | 1 | -1/+1 |
| | | | | Performance stays the same as before. | ||||
* | tun: windows: style | Jason A. Donenfeld | 2019-07-23 | 1 | -1/+1 |
| | |||||
* | tun: windows: close event handle on shutdown | Jason A. Donenfeld | 2019-07-22 | 1 | -0/+1 |
| | |||||
* | tun: windows: get rid of retry logic | Jason A. Donenfeld | 2019-07-19 | 1 | -213/+91 |
| | | | | Things work fine on Windows 8. | ||||
* | tun: windows: use specific IOCTL code | Jason A. Donenfeld | 2019-07-19 | 1 | -1/+1 |
| | |||||
* | tun: windows: open file at startup time | Jason A. Donenfeld | 2019-07-18 | 1 | -0/+9 |
| | |||||
* | tun: windows: silently drop packet when ring is full | Jason A. Donenfeld | 2019-07-18 | 1 | -2/+2 |
| | |||||
* | tun: windows: switch to NDIS device object | Jason A. Donenfeld | 2019-07-18 | 1 | -2/+6 |
| | |||||
* | 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 | 1 | -3/+12 |
| | |||||
* | tun: remove TUN prefix from types to reduce stutter elsewhere | Matt Layher | 2019-06-14 | 1 | -5/+5 |
| | | | | Signed-off-by: Matt Layher <mdlayher@gmail.com> | ||||
* | wintun: fix comments and remove hwnd param | Jason A. Donenfeld | 2019-06-10 | 1 | -5/+5 |
| | | | | This now looks more idiomatic. | ||||
* | wintun: allow controlling GUID | Jason A. Donenfeld | 2019-06-10 | 1 | -1/+9 |
| | |||||
* | global: fixup TODO comment spacing | Jason A. Donenfeld | 2019-06-06 | 1 | -1/+1 |
| | |||||
* | wintun: simplify DeleteInterface method signature | Simon Rozman | 2019-06-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | 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> | ||||
* | 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. | ||||
* | wintun: remove extra / | Jason A. Donenfeld | 2019-05-26 | 1 | -1/+1 |
| | |||||
* | wintun: revise GetInterface() | Simon Rozman | 2019-05-24 | 1 | -0/+2 |
| | | | | | | | | | | | - 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> | ||||
* | setupapi: trim "Get" from getters | Simon Rozman | 2019-05-22 | 1 | -1/+1 |
| | | | | 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 | -16/+8 |
| | |||||
* | wintun: make certain methods private | Jason A. Donenfeld | 2019-05-17 | 1 | -10/+3 |
| | |||||
* | wintun: change acronyms to uppercase | Simon Rozman | 2019-05-17 | 1 | -5/+5 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: add LUID accessor | Jason A. Donenfeld | 2019-05-10 | 1 | -0/+7 |
| | |||||
* | wintun: wait for interface registry key on device creation | Simon Rozman | 2019-05-10 | 1 | -24/+16 |
| | | | | | | By using RegNotifyChangeKeyValue(). Also disable dead gateway detection. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: work around GetInterface staleness bug | Jason A. Donenfeld | 2019-05-03 | 1 | -16/+28 |
| |