summaryrefslogtreecommitdiffhomepage
path: root/tun/tun_windows.go
AgeCommit message (Collapse)Author
2019-08-24wintun: make description consistent across fieldsJason A. Donenfeld
2019-08-19tun: windows: don't spin unless we really need itJason A. Donenfeld
2019-08-03tun: windows: spin for only a millisecond/80Jason A. Donenfeld
Performance stays the same as before.
2019-07-23tun: windows: styleJason 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-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-10wintun: fix comments and remove hwnd paramJason A. Donenfeld
This now looks more idiomatic.
2019-06-10wintun: allow controlling GUIDJason A. Donenfeld
2019-06-06global: fixup TODO comment spacingJason A. Donenfeld
2019-06-06wintun: simplify DeleteInterface method signatureSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-06-05tun: windows: obsolete 256 packets per exchange buffer limitationSimon Rozman
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-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-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
2019-05-17wintun: make certain methods privateJason A. Donenfeld
2019-05-17wintun: change acronyms to uppercaseSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-10wintun: add LUID accessorJason A. Donenfeld
2019-05-10wintun: wait for interface registry key on device creationSimon Rozman
By using RegNotifyChangeKeyValue(). Also disable dead gateway detection. Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-03wintun: work around GetInterface staleness bugJason A. Donenfeld
2019-04-11tun: windows: Adopt new error codes returned by WintunSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-04-11tun: windows: do not sleep after OPERATION_ABORTED on writeSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-04-09tun: windows: do not sleep after OPERATION_ABORTEDJason A. Donenfeld
2019-04-04tun: windows: Retry R/W on ERROR_OPERATION_ABORTEDSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-04-03tun: windows: Attempt to reopen handle on all errorsSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-04-01wintun: add more retry loopsJason A. Donenfeld
2019-03-26tun: windows: cancel ongoing reads on closing and delete after closeJason A. Donenfeld
This reverts commit 52ec440d7977fad966002c3710ed9df957943407 and adds some spice.
2019-03-22tun: windows: delete interface before deleting file handlesJason A. Donenfeld
2019-03-22tun: windows: Make adapter rename asynchronousSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-22tun: windows: Adapter devices renamed to WINTUN<LUID Index>Simon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-22tun: windows: Increase unavailable adapter timeout to 30secSimon Rozman
5 seconds was too short when debugging. Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-22tun: windows: Make writing persistent tooSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-22tun: windows: Fix paused adapter testSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-21tun: windows: just open two file handlesJason A. Donenfeld
2019-03-21receive: implement flush semanticsJason A. Donenfeld
2019-03-21tun: windows: add dummy overlapped events backJason A. Donenfeld
These seem basically wrong to me, but we get crashes without them.