aboutsummaryrefslogtreecommitdiffstats
path: root/tun/wintun (follow)
Commit message (Collapse)AuthorAgeFilesLines
* wintun: manage ring memory manuallyJason A. Donenfeld2019-11-221-4/+24
| | | | | It's large and Go's garbage collector doesn't deal with it especially well.
* global: fix a few typos courtesy of codespellJonathan Tooker2019-10-221-1/+1
| | | | Signed-off-by: Jonathan Tooker <jonathan.tooker@netprotect.com>
* namespaceapi: remove tasteless commentJason A. Donenfeld2019-10-211-1/+1
|
* wintun: normalize variable names for their typesJason A. Donenfeld2019-10-171-72/+72
|
* wintun: quickly ignore non-Wintun devicesAvery Pennarun2019-10-171-0/+18
| | | | | | | | | Some devices take ~2 seconds to enumerate on Windows if we try to get their instance name. The hardware id property, on the other hand, is available right away. Signed-off-by: Avery Pennarun <apenwarr@gmail.com> [zx2c4: inlined this to where it makes sense, reused setupapi const]
* wintun: expose versionJason A. Donenfeld2019-10-081-1/+29
|
* mod: bump versionsJason A. Donenfeld2019-10-046-6/+6
|
* winpipe: use x/sys/windows instead of syscallJason A. Donenfeld2019-09-161-3/+2
|
* wintun: use correct length for security attributesJason A. Donenfeld2019-09-161-1/+1
|
* namespaceapi: AddSIDToBoundaryDescriptor modifies the handleJason A. Donenfeld2019-09-051-2/+2
|
* wintun: take mutex first alwaysJason A. Donenfeld2019-09-011-9/+9
| | | | This prevents an ABA deadlock with setupapi's internal locks.
* wintun: consider abandoned mutexes as releasedJason A. Donenfeld2019-09-011-1/+1
|
* wintun: put mutex into private namespaceJason A. Donenfeld2019-08-303-26/+99
|
* namespaceapi: fix mistakeJason A. Donenfeld2019-08-302-4/+4
|
* namespaceapi: initial versionSimon Rozman2019-08-303-0/+207
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* wintun: take mutex so that deletion uses the right nameJason A. Donenfeld2019-08-301-9/+70
|
* wintun: move ring constants into moduleJason A. Donenfeld2019-08-292-2/+99
|
* wintun: delete all interfaces is not used anymoreJason A. Donenfeld2019-08-291-9/+0
|
* wintun: Wintun->InterfaceJason A. Donenfeld2019-08-291-27/+26
|
* wintun: keep reference to pool in wintun objectJason A. Donenfeld2019-08-291-7/+9
|
* wintun: introduce adapter poolsSimon Rozman2019-08-291-21/+45
| | | | | | This makes wintun package reusable for non-WireGuard applications. Signed-off-by: Simon Rozman <simon@rozman.si>
* wintun: simplify rename logicJason A. Donenfeld2019-08-281-5/+4
|
* wintun: give better errors when ndis interface listing failsJason A. Donenfeld2019-08-281-2/+2
|
* wintun: also check for numbered suffix and friendly nameJason A. Donenfeld2019-08-281-9/+22
|
* wintun: upgrade deleting all interfaces and make it reusableSimon Rozman2019-08-281-4/+29
| | | | | | | | | | | DeleteAllInterfaces() didn't check if SPDRP_DEVICEDESC == "WireGuard Tunnel". It deleted _all_ Wintun adapters, not just WireGuard's. Furthermore, the DeleteAllInterfaces() was upgraded into a new function called DeleteMatchingInterfaces() for selectively deletion. This will be used by WireGuard to clean stale Wintun adapters. Signed-off-by: Simon Rozman <simon@rozman.si>
* wintun: cleanup earlierJason A. Donenfeld2019-08-271-19/+20
|
* wintun: rename duplicate adapters instead of ourselvesJason A. Donenfeld2019-08-274-0/+118
|
* wintun: match suffix numbersJason A. Donenfeld2019-08-261-1/+8
|
* wintun: make description consistent across fieldsJason A. Donenfeld2019-08-241-12/+9
|
* wintun: try multiple names until one isn't a duplicateJason A. Donenfeld2019-08-221-4/+12
|
* wintun: use nci.dll directly instead of buggy netshellJason A. Donenfeld2019-08-215-84/+102
|
* wintun: set friendly a bit betterJason A. Donenfeld2019-08-201-22/+10
| | | | | This is still wrong, but NETSETUPPKEY_Driver_FriendlyName seems a bit tricky to use.
* wintun: also set friendly name after setting interface nameJason A. Donenfeld2019-08-191-8/+23
|
* wintun: defer requires unique variableJason A. Donenfeld2019-08-191-33/+22
|
* wintun: set adapter description nameJason A. Donenfeld2019-08-191-0/+24
|
* wintun: merge opening device registry keySimon Rozman2019-08-021-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 requirementSimon Rozman2019-08-021-18/+7
| | | | | | We never checked checkReboot() reported error anyway. Signed-off-by: Simon Rozman <simon@rozman.si>
* wintun: refactor `err == nil` error checkingSimon Rozman2019-08-022-133/+166
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* wintun: handle error for deadgwdetectJason A. Donenfeld2019-08-021-2/+3
|
* wintun: get interface path properly with cfgmgrJason A. Donenfeld2019-07-234-30/+93
|
* wintun: simplify resolution of dev nodeJason A. Donenfeld2019-07-231-13/+10
|
* wintun: enable sharing of pnp nodeJason A. Donenfeld2019-07-221-1/+1
|
* tun: windows: get rid of retry logicJason A. Donenfeld2019-07-191-5/+9
| | | | Things work fine on Windows 8.
* tun: windows: switch to NDIS device objectJason A. Donenfeld2019-07-181-5/+0
|
* wintun: calculate path of NDIS device object symbolic linkJason A. Donenfeld2019-07-181-0/+20
|
* tun: windows: never retry open on Windows 10Jason A. Donenfeld2019-06-181-1/+1
|
* wintun: increase registry timeoutJason A. Donenfeld2019-06-111-1/+1
|
* wintun: add helper for cleaning upJason A. Donenfeld2019-06-101-9/+82
|
* wintun: simplify error matching and remove dumb commentsJason A. Donenfeld2019-06-101-19/+4
|
* wintun: fix comments and remove hwnd paramJason A. Donenfeld2019-06-101-119/+50
| | | | This now looks more idiomatic.