summaryrefslogtreecommitdiffhomepage
path: root/tun
AgeCommit message (Collapse)Author
2019-08-03tun: windows: spin for only a millisecond/80Jason A. Donenfeld
Performance stays the same as before.
2019-08-02wintun: merge opening device registry keySimon Rozman
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>
2019-08-02wintun: simplify checking reboot requirementSimon Rozman
We never checked checkReboot() reported error anyway. Signed-off-by: Simon Rozman <simon@rozman.si>
2019-08-02wintun: refactor `err == nil` error checkingSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-08-02wintun: handle error for deadgwdetectJason A. Donenfeld
2019-08-02tun: darwin: do not attempt to close tun.event twiceJason A. Donenfeld
Previously it was possible for this to race. It turns out we really don't need to set anything to -1 anyway.
2019-07-23wintun: get interface path properly with cfgmgrJason A. Donenfeld
2019-07-23tun: windows: styleJason A. Donenfeld
2019-07-23wintun: simplify resolution of dev nodeJason A. Donenfeld
2019-07-22wintun: enable sharing of pnp nodeJason A. Donenfeld
2019-07-22tun: windows: close event handle on shutdownJason A. Donenfeld
2019-07-19tun: windows: get rid of retry logicJason A. Donenfeld
Things work fine on Windows 8.
2019-07-19tun: windows: use specific IOCTL codeJason A. Donenfeld
2019-07-18tun: windows: open file at startup timeJason A. Donenfeld
2019-07-18tun: windows: silently drop packet when ring is fullJason A. Donenfeld
2019-07-18tun: windows: switch to NDIS device objectJason A. Donenfeld
2019-07-18wintun: calculate path of NDIS device object symbolic linkJason A. Donenfeld
2019-07-18tun: openbsd: don't change MTU when it's already the expected sizeMichael Zeltner
Allows for running wireguard-go as non-root user. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-07-18tun: windows: spin for a bit before falling back to event objectJason A. Donenfeld
2019-07-17tun: windows: implement ring buffersSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-07-05tun: windows: registration of write buffer no longer requiredJason A. Donenfeld
2019-07-05tun: windows: decrease alignment to 4Jason A. Donenfeld
2019-07-04tun: windows: delay initial writeJason A. Donenfeld
Otherwise we provoke Wintun 0.3.
2019-07-01tun: windows: packetNum is unusedJason A. Donenfeld
2019-06-26tun: windows: inform wintun of maximum buffer length for writesJason A. Donenfeld
2019-06-18tun: windows: never retry open on Windows 10Jason A. Donenfeld
2019-06-14tun: remove TUN prefix from types to reduce stutter elsewhereMatt Layher
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2019-06-11wintun: increase registry timeoutJason A. Donenfeld
2019-06-10wintun: add helper for cleaning upJason A. Donenfeld
2019-06-10wintun: simplify error matching and remove dumb commentsJason A. Donenfeld
2019-06-10wintun: fix comments and remove hwnd paramJason A. Donenfeld
This now looks more idiomatic.
2019-06-10setupapi: add SetDeviceRegistryPropertyString descriptionSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-06-10setupapi: unify ERROR_INSUFFICIENT_BUFFER handlingSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-06-10wintun: allow controlling GUIDJason A. Donenfeld
2019-06-10setupapi: add DeviceInstanceID()Jason A. Donenfeld
2019-06-06global: fixup TODO comment spacingJason A. Donenfeld
2019-06-06wintun: guid functions are upstreamJason A. Donenfeld
2019-06-06wintun: simplify DeleteInterface method signatureSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-06-05wintun: don't run HrRenameConnection in separate threadJason A. Donenfeld
It's very slow, but unfortunately we haven't a choice. NLA needs this to have completed.
2019-06-05tun: windows: obsolete 256 packets per exchange buffer limitationSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-06-04setupapi, wintun: replace syscall with golang.org/x/sys/windowsSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-06-04wintun: set DI_QUIETINSTALL flag for GUI-less device managementSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-06-04setupapi: define PropChangeParams structSimon Rozman
This structure is required for calling DIF_PROPERTYCHANGE installer class. Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-31tun: 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-29device, tun: rearrange code and fix device testsMatt Layher
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2019-05-26wintun: remove extra /Jason A. Donenfeld
2019-05-24wintun: 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-23wintun: never return nil, nilJason A. Donenfeld
2019-05-22setupapi: trim "Get" from gettersSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-17wintun: don't try to flush interface, but rather deleteJason A. Donenfeld