Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change generic local variable names with meaningful replacements | Simon Rozman | 2019-02-05 | 1 | -41/+42 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Add support for setupapi.SetupDiClassGuidsFromNameEx() | Simon Rozman | 2019-02-05 | 3 | -0/+75 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Clean an unused constant | Simon Rozman | 2019-02-05 | 1 | -1/+0 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Replace SetupDiClassNameFromGuid() with SetupDiClassNameFromGuidEx() | Simon Rozman | 2019-02-05 | 3 | -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 Rozman | 2019-02-05 | 4 | -0/+57 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Stop checking for valid handle in DevInfo.Close() | Simon Rozman | 2019-02-05 | 1 | -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 Rozman | 2019-02-05 | 2 | -0/+14 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Add support for setupapi.SetupDi(Get|Set)ClassInstallParams() | Simon Rozman | 2019-02-05 | 3 | -0/+80 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Add support for setupapi.SetupDi(Get|Set)DeviceInstallParams() | Simon Rozman | 2019-02-05 | 4 | -0/+227 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Add support for setupapi.SetupDiOpenDevRegKey() | Simon Rozman | 2019-02-05 | 4 | -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 Rozman | 2019-02-05 | 4 | -18/+83 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Update exported types and functions annotations | Simon Rozman | 2019-02-05 | 1 | -1/+3 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Add support for setupapi.SetupDiGetDeviceInfoListDetail() | Simon Rozman | 2019-02-05 | 4 | -40/+149 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Finish support for setupapi.SetupDiGetClassDevsEx() | Simon Rozman | 2019-02-05 | 4 | -26/+107 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Introduce SetupAPI - Windows device and driver management API | Simon Rozman | 2019-02-05 | 4 | -0/+120 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Import windows scafolding | Jason A. Donenfeld | 2019-02-05 | 6 | -9/+462 |
| | |||||
* | noise: store clamped key instead of raw key | Jason A. Donenfeld | 2019-02-05 | 2 | -6/+10 |
| | |||||
* | tai64n: whiten nano seconds | Jason A. Donenfeld | 2019-02-05 | 1 | -2/+3 |
| | | | | Avoid being too precise of a time oracle. | ||||
* | uapi: Simpler function signature | Jason A. Donenfeld | 2019-02-05 | 1 | -4/+4 |
| | |||||
* | Extend structs rather than embed, when possible | Jason A. Donenfeld | 2019-02-05 | 16 | -215/+213 |
| | |||||
* | Update copyright | Jason A. Donenfeld | 2019-02-05 | 55 | -467/+141 |
| | |||||
* | Properly bubble up setsockopt error from closure | Jason A. Donenfeld | 2018-12-25 | 1 | -2/+9 |
| | |||||
* | version: bump snapshot0.0.20181222 | Jason A. Donenfeld | 2018-12-22 | 1 | -1/+1 |
| | |||||
* | Make error messages consistent | Jason A. Donenfeld | 2018-12-19 | 3 | -6/+9 |
| | |||||
* | Freebsd is finally normal in sys/unix | Jason A. Donenfeld | 2018-12-11 | 2 | -24/+0 |
| | |||||
* | Separate out mark setting for Windows | Jason A. Donenfeld | 2018-12-11 | 3 | -46/+69 |
| | |||||
* | Use upstream's xchacha20poly1305 | Jason A. Donenfeld | 2018-12-10 | 4 | -288/+5 |
| | |||||
* | Update go x/ libraries | Jason A. Donenfeld | 2018-12-10 | 2 | -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 linux | Jason A. Donenfeld | 2018-12-06 | 1 | -10/+0 |
| | | | | | | This is no longer necessary and actually breaks things Reported-by: Chris Branch <cbranch@cloudflare.com> | ||||
* | tai64n: use proper nanoseconds offset | Jason A. Donenfeld | 2018-11-08 | 1 | -1/+1 |
| | | | | | | The code before was obviously wrong. Reported-by: Vlad Krasnov <vlad@cloudflare.com> | ||||
* | Use darwin tun on ios | Jason A. Donenfeld | 2018-11-06 | 1 | -2/+0 |
| | |||||
* | uapi: typo | Jason A. Donenfeld | 2018-11-05 | 1 | -1/+1 |
| | |||||
* | receive: make started status uniform | Jason A. Donenfeld | 2018-11-01 | 1 | -1/+1 |
| | |||||
* | send: do not unlock already freed object | Jason A. Donenfeld | 2018-10-18 | 1 | -1/+0 |
| | |||||
* | version: bump snapshot0.0.20181018 | Jason A. Donenfeld | 2018-10-18 | 1 | -1/+1 |
| | |||||
* | Makefile: rename default to all | Jason A. Donenfeld | 2018-10-17 | 1 | -2/+2 |
| | |||||
* | tun: only call .Fd() once | Jason A. Donenfeld | 2018-10-17 | 4 | -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 always | Jason A. Donenfeld | 2018-10-12 | 1 | -0/+1 |
| | |||||
* | Do not build if nothing to do | Jason A. Donenfeld | 2018-10-12 | 1 | -12/+19 |
| | |||||
* | Switch to go modules | Jason A. Donenfeld | 2018-10-09 | 6 | -81/+20 |
| | |||||
* | version: bump snapshot0.0.20181001 | Jason A. Donenfeld | 2018-10-01 | 1 | -1/+1 |
| | |||||
* | Adding missing queueconstants file | Jason A. Donenfeld | 2018-10-01 | 1 | -0/+16 |
| | |||||
* | Fix transport message length check | Chris Branch | 2018-09-25 | 1 | -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 more | Jason A. Donenfeld | 2018-09-25 | 2 | -24/+18 |
| | |||||
* | Fix shutdown races | Jason A. Donenfeld | 2018-09-24 | 3 | -12/+42 |
| | |||||
* | More pooling | Jason A. Donenfeld | 2018-09-24 | 4 | -56/+148 |
| | |||||
* | Fixup buffer freeing | Jason A. Donenfeld | 2018-09-22 | 3 | -9/+21 |
| | |||||
* | send: more precise padding calculation | Jason A. Donenfeld | 2018-09-16 | 1 | -5/+7 |
| | |||||
* | device: preallocated buffers scheme | Jason A. Donenfeld | 2018-09-16 | 1 | -7/+26 |
| | | | | Not useful now but quite possibly later. | ||||
* | Change queueing drop order and fix memory leaks | Jason A. Donenfeld | 2018-09-16 | 2 | -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. |