summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Change generic local variable names with meaningful replacementsSimon Rozman2019-02-051-41/+42
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Add support for setupapi.SetupDiClassGuidsFromNameEx()Simon Rozman2019-02-053-0/+75
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Clean an unused constantSimon Rozman2019-02-051-1/+0
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Replace SetupDiClassNameFromGuid() with SetupDiClassNameFromGuidEx()Simon Rozman2019-02-053-14/+29
| | | | | | | The former is only a subset of the later. To minimize future maintenance, we'll provide support for extended version only. Signed-off-by: Simon Rozman <simon@rozman.si>
* Add support for setupapi.SetupDiClassNameFromGuid()Simon Rozman2019-02-054-0/+57
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Stop checking for valid handle in DevInfo.Close()Simon Rozman2019-02-051-5/+1
| | | | | | | | | | User should not have called or deferred the Close() method should SetupDiGetClassDevsEx() return an error (and invalid handle). And even if user does that, a SetupDiDestroyDeviceInfoList(INVALID_HANDLE_VALUE) is harmless. It just returns ERROR_INVALID_HANDLE - we have a unit test for this in TestSetupDiDestroyDeviceInfoList(). Signed-off-by: Simon Rozman <simon@rozman.si>
* Add support for setupapi.SetupDiCallClassInstaller()Simon Rozman2019-02-052-0/+14
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Add support for setupapi.SetupDi(Get|Set)ClassInstallParams()Simon Rozman2019-02-053-0/+80
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Add support for setupapi.SetupDi(Get|Set)DeviceInstallParams()Simon Rozman2019-02-054-0/+227
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Add support for setupapi.SetupDiOpenDevRegKey()Simon Rozman2019-02-054-25/+75
| | | | | | | | | Furthermore setupapi.DevInfoData has been obsoleted. SetupDiEnumDeviceInfo() fills existing SP_DEVINFO_DATA structure now. As other functions of SetupAPI use SP_DEVINFO_DATA, converting it to DevInfoData and back would hurt performance. Signed-off-by: Simon Rozman <simon@rozman.si>
* Add support for setupapi.SetupDiEnumDeviceInfo()Simon Rozman2019-02-054-18/+83
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Update exported types and functions annotationsSimon Rozman2019-02-051-1/+3
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Add support for setupapi.SetupDiGetDeviceInfoListDetail()Simon Rozman2019-02-054-40/+149
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Finish support for setupapi.SetupDiGetClassDevsEx()Simon Rozman2019-02-054-26/+107
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Introduce SetupAPI - Windows device and driver management APISimon Rozman2019-02-054-0/+120
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Import windows scafoldingJason A. Donenfeld2019-02-056-9/+462
|
* noise: store clamped key instead of raw keyJason A. Donenfeld2019-02-052-6/+10
|
* tai64n: whiten nano secondsJason A. Donenfeld2019-02-051-2/+3
| | | | Avoid being too precise of a time oracle.
* uapi: Simpler function signatureJason A. Donenfeld2019-02-051-4/+4
|
* Extend structs rather than embed, when possibleJason A. Donenfeld2019-02-0516-215/+213
|
* Update copyrightJason A. Donenfeld2019-02-0555-467/+141
|
* Properly bubble up setsockopt error from closureJason A. Donenfeld2018-12-251-2/+9
|
* version: bump snapshot0.0.20181222Jason A. Donenfeld2018-12-221-1/+1
|
* Make error messages consistentJason A. Donenfeld2018-12-193-6/+9
|
* Freebsd is finally normal in sys/unixJason A. Donenfeld2018-12-112-24/+0
|
* Separate out mark setting for WindowsJason A. Donenfeld2018-12-113-46/+69
|
* Use upstream's xchacha20poly1305Jason A. Donenfeld2018-12-104-288/+5
|
* Update go x/ librariesJason A. Donenfeld2018-12-102-9/+9
| | | | | | | | | Android 9's Bionic disallows inotify_init with seccomp, so we want the latest unix change, and while we're at it, we update the others too. Reported-by: Berk D. Demir <bdd@mindcast.org> Go CL: https://go-review.googlesource.com/c/sys/+/153318 Fixes: https://lists.zx2c4.com/pipermail/wireguard/2018-December/003642.html
* tun: remove nonblock hack for linuxJason A. Donenfeld2018-12-061-10/+0
| | | | | | This is no longer necessary and actually breaks things Reported-by: Chris Branch <cbranch@cloudflare.com>
* tai64n: use proper nanoseconds offsetJason A. Donenfeld2018-11-081-1/+1
| | | | | | The code before was obviously wrong. Reported-by: Vlad Krasnov <vlad@cloudflare.com>
* Use darwin tun on iosJason A. Donenfeld2018-11-061-2/+0
|
* uapi: typoJason A. Donenfeld2018-11-051-1/+1
|
* receive: make started status uniformJason A. Donenfeld2018-11-011-1/+1
|
* send: do not unlock already freed objectJason A. Donenfeld2018-10-181-1/+0
|
* version: bump snapshot0.0.20181018Jason A. Donenfeld2018-10-181-1/+1
|
* Makefile: rename default to allJason A. Donenfeld2018-10-171-2/+2
|
* tun: only call .Fd() onceJason A. Donenfeld2018-10-174-61/+67
| | | | | Doing so tends to make the tunnel blocking, so we only retrieve it once before we call SetNonblock, and then cache the result.
* Use go modules alwaysJason A. Donenfeld2018-10-121-0/+1
|
* Do not build if nothing to doJason A. Donenfeld2018-10-121-12/+19
|
* Switch to go modulesJason A. Donenfeld2018-10-096-81/+20
|
* version: bump snapshot0.0.20181001Jason A. Donenfeld2018-10-011-1/+1
|
* Adding missing queueconstants fileJason A. Donenfeld2018-10-011-0/+16
|
* Fix transport message length checkChris Branch2018-09-251-1/+1
| | | | | | wireguard-go has a bad length check in its transport message handling. Although it cannot be exploited because of another length check earlier in the function, this should be fixed regardless.
* Make it easy to restrict queue sizes moreJason A. Donenfeld2018-09-252-24/+18
|
* Fix shutdown racesJason A. Donenfeld2018-09-243-12/+42
|
* More poolingJason A. Donenfeld2018-09-244-56/+148
|
* Fixup buffer freeingJason A. Donenfeld2018-09-223-9/+21
|
* send: more precise padding calculationJason A. Donenfeld2018-09-161-5/+7
|
* device: preallocated buffers schemeJason A. Donenfeld2018-09-161-7/+26
| | | | Not useful now but quite possibly later.
* Change queueing drop order and fix memory leaksJason A. Donenfeld2018-09-162-75/+47
| | | | | | If the queues are full, we drop the present packet, which is better for network traffic flow. Also, we try to fix up the memory leaks with not putting buffers from our shared pool.