summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* send: use accessor function for buffer poolJason A. Donenfeld2018-09-161-1/+1
|
* Fixed port overwrite issue on kernels without ipv6Mathias Hall-Andersen2018-09-161-13/+35
| | | | | | | | | | | | Fixed an issue in CreateBind for Linux: If ipv6 was not supported the error code would be correctly identified as EAFNOSUPPORT and ipv4 binding attempted. However the port would be set to 0, which results in the subsequent create4 call requesting a random port rather than the one provided to CreateBind. This issue was identified by: Kent Friis <leeloored@gmx.com>
* global: fix up copyright headersJason A. Donenfeld2018-09-1652-89/+52
|
* uapi: insert peer version placeholderJason A. Donenfeld2018-09-021-0/+8
| | | | | | | While we don't want people to ever use old protocols, people will complain if the API "changes", so explicitly make the unset protocol mean the latest, and add a dummy mechanism of specifying the protocol on a per-peer basis, which we hope nobody actually ever uses.
* Fix duplicate copyright lineJason A. Donenfeld2018-07-301-2/+0
|
* uapi: allow overriding socket directory at compile timeJason A. Donenfeld2018-07-242-2/+4
|
* send: better debug message for failed data packetJason A. Donenfeld2018-07-161-1/+2
|
* version: bump snapshot0.0.20180613Jason A. Donenfeld2018-06-132-1/+3
|