Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-07-01 | tun: windows: packetNum is unused | Jason A. Donenfeld | |
2019-07-01 | device: receive: simplify flush loop | Jason A. Donenfeld | |
2019-06-26 | tun: windows: inform wintun of maximum buffer length for writes | Jason A. Donenfeld | |
2019-06-18 | tun: windows: never retry open on Windows 10 | Jason A. Donenfeld | |
2019-06-14 | tun: remove TUN prefix from types to reduce stutter elsewhere | Matt Layher | |
Signed-off-by: Matt Layher <mdlayher@gmail.com> | |||
2019-06-11 | device: update transfer counters correctly | Jason A. Donenfeld | |
The rule is to always update them to the full packet size minus UDP/IP encapsulation for all authenticated packet types. | |||
2019-06-11 | wintun: increase registry timeout | Jason A. Donenfeld | |
2019-06-10 | wintun: add helper for cleaning up | Jason A. Donenfeld | |
2019-06-10 | wintun: simplify error matching and remove dumb comments | Jason A. Donenfeld | |
2019-06-10 | wintun: fix comments and remove hwnd param | Jason A. Donenfeld | |
This now looks more idiomatic. | |||
2019-06-10 | setupapi: add SetDeviceRegistryPropertyString description | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-10 | setupapi: unify ERROR_INSUFFICIENT_BUFFER handling | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-10 | wintun: allow controlling GUID | Jason A. Donenfeld | |
2019-06-10 | setupapi: add DeviceInstanceID() | Jason A. Donenfeld | |
2019-06-06 | global: fixup TODO comment spacing | Jason A. Donenfeld | |
2019-06-06 | wintun: guid functions are upstream | Jason A. Donenfeld | |
2019-06-06 | wintun: simplify DeleteInterface method signature | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-05 | wintun: don't run HrRenameConnection in separate thread | Jason A. Donenfeld | |
It's very slow, but unfortunately we haven't a choice. NLA needs this to have completed. | |||
2019-06-05 | tun: windows: obsolete 256 packets per exchange buffer limitation | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-04 | setupapi, wintun: replace syscall with golang.org/x/sys/windows | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-04 | wintun: set DI_QUIETINSTALL flag for GUI-less device management | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-04 | setupapi: define PropChangeParams struct | Simon Rozman | |
This structure is required for calling DIF_PROPERTYCHANGE installer class. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-06-04 | device: remove redundant return statements | Matt Layher | |
More staticcheck fixes: $ staticcheck ./... | grep S1023 device/noise-helpers.go:45:2: redundant return statement (S1023) device/noise-helpers.go:54:2: redundant return statement (S1023) device/noise-helpers.go:64:2: redundant return statement (S1023) Signed-off-by: Matt Layher <mdlayher@gmail.com> | |||
2019-06-04 | device: use bytes.Equal for equality check, simplify assertEqual | Matt Layher | |
Signed-off-by: Matt Layher <mdlayher@gmail.com> | |||
2019-06-03 | device, ratelimiter: replace uses of time.Now().Sub() with time.Since() | Matt Layher | |
Simplification found by staticcheck: $ staticcheck ./... | grep S1012 device/cookie.go:90:5: should use time.Since instead of time.Now().Sub (S1012) device/cookie.go:127:5: should use time.Since instead of time.Now().Sub (S1012) device/cookie.go:242:5: should use time.Since instead of time.Now().Sub (S1012) device/noise-protocol.go:304:13: should use time.Since instead of time.Now().Sub (S1012) device/receive.go:82:46: should use time.Since instead of time.Now().Sub (S1012) device/send.go:132:5: should use time.Since instead of time.Now().Sub (S1012) device/send.go:139:5: should use time.Since instead of time.Now().Sub (S1012) device/send.go:235:59: should use time.Since instead of time.Now().Sub (S1012) device/send.go:393:9: should use time.Since instead of time.Now().Sub (S1012) ratelimiter/ratelimiter.go:79:10: should use time.Since instead of time.Now().Sub (S1012) ratelimiter/ratelimiter.go:87:10: should use time.Since instead of time.Now().Sub (S1012) Change applied using: $ find . -type f -name "*.go" -exec sed -i "s/Now().Sub(/Since(/g" {} \; Signed-off-by: Matt Layher <mdlayher@gmail.com> | |||
2019-06-03 | ipc/winpipe: go fmt | Matt Layher | |
Signed-off-by: Matt Layher <mdlayher@gmail.com> | |||
2019-05-31 | tun: windows: mitigate infinite loop in Flush() | Jason A. Donenfeld | |
It's possible that for whatever reason, we keep returning EOF, resulting in repeated close/open/write operations, except with empty packets. | |||
2019-05-30 | device: add SendKeepalivesToPeersWithCurrentKeypair for handover | Jason A. Donenfeld | |
2019-05-29 | tai64n: account for whitening in test | Jason A. Donenfeld | |
2019-05-29 | device, tun: rearrange code and fix device tests | Matt Layher | |
Signed-off-by: Matt Layher <mdlayher@gmail.com> | |||
2019-05-26 | wintun: remove extra / | Jason A. Donenfeld | |
2019-05-25 | device: darwin actually doesn't need bound interfaces | Jason A. Donenfeld | |
2019-05-25 | device: make initiations per second match kernel implementation | Jason A. Donenfeld | |
2019-05-24 | device: timers: add jitter on ack failure reinitiation | Jason A. Donenfeld | |
2019-05-24 | wintun: revise GetInterface() | Simon Rozman | |
- 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> | |||
2019-05-23 | wintun: never return nil, nil | Jason A. Donenfeld | |
2019-05-23 | ipc: use simplified fork of winio | Jason A. Donenfeld | |
2019-05-22 | setupapi: trim "Get" from getters | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-05-17 | wintun: don't try to flush interface, but rather delete | Jason A. Donenfeld | |
2019-05-17 | device: fail to give bind if it doesn't exist | Jason A. Donenfeld | |
2019-05-17 | wintun: make certain methods private | Jason A. Donenfeld | |
2019-05-17 | version: bump snapshot | Jason A. Donenfeld | |
2019-05-17 | makefile: do not show warning on non-linux | Jason A. Donenfeld | |
2019-05-17 | wintun: change acronyms to uppercase | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-05-14 | global: regroup all imports | Jason A. Donenfeld | |
2019-05-11 | wintun: registry: fix nits | Jason A. Donenfeld | |
2019-05-11 | wintun: registry: revise value reading | Simon Rozman | |
- Make getStringValueRetry() reusable for reading any value type. This merges code from GetIntegerValueWait(). - expandString() >> toString() and extend to support REG_MULTI_SZ (to return first value of REG_MULTI_SZ). Furthermore, doing our own UTF-16 to UTF-8 conversion works around a bug in windows/registry's GetStringValue() non-zero terminated string handling. - Provide toInteger() analogous to toString() - GetStringValueWait() tolerates and reads REG_MULTI_SZ too now. It returns REG_MULTI_SZ[0], making GetFirstStringValueWait() redundant. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-05-10 | wintun: call HrRenameConnection in another thread | Jason A. Donenfeld | |
2019-05-10 | wintun: add LUID accessor | Jason A. Donenfeld | |
2019-05-10 | wintun: enumerate faster by using COMPATDRIVER instead of CLASSDRIVER | Jason A. Donenfeld | |