Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-03-22 | tun: windows: Increase unavailable adapter timeout to 30sec | Simon Rozman | |
5 seconds was too short when debugging. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-22 | tun: windows: Make writing persistent too | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-22 | tun: windows: Fix paused adapter test | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-21 | tun: windows: just open two file handles | Jason A. Donenfeld | |
2019-03-21 | receive: implement flush semantics | Jason A. Donenfeld | |
2019-03-21 | tun: windows: add dummy overlapped events back | Jason A. Donenfeld | |
These seem basically wrong to me, but we get crashes without them. | |||
2019-03-20 | tun: windows: use new constants in sys | Jason A. Donenfeld | |
2019-03-21 | wintun: Use native Win32 API for I/O | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-18 | tun: windows: wintun does iocp | Jason A. Donenfeld | |
2019-03-13 | tun: windows: temporary hack for forcing MTU | Jason A. Donenfeld | |
2019-03-04 | wintun: Resolve some of golint warnings | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-04 | Elaborate the failing step when forwarding errors on return | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-03-03 | global: begin modularization | Jason A. Donenfeld | |
2019-03-01 | tun: windows: expose GUID | Jason A. Donenfeld | |
2019-03-01 | tun: allow special methods in NativeTun | Jason A. Donenfeld | |
2019-02-22 | wintun: Read/write packet size from/to exchange buffer directly | Simon Rozman | |
Driver <-> user-space communication is local and using native endian. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-22 | wintun: Make two-step slicing a one step | Simon Rozman | |
Stop relying to Go compiler optimizations and calculate the end offset directly. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-20 | wintun: Write exchange buffer increased back to 1MiB | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-20 | wintun: Migrate from unsafe buffer handling to encoding/binary | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-20 | wintun: Adopt new packet data alignment | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-20 | wintun: Cleanup | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-20 | wintun: Add TUN device locking | Simon Rozman | |
In case reading from TUN device detected TUN device was closed, it closed the file handle and set tunFile to nil. The tunFile is automatically reopened on retry, but... If another packet comes in the WireGuard calls Write() method. With tunFile set to nil, this will cause access violation. Therefore, locking was introduced. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-20 | wintun: Move exchange buffer in separate struct on heap | Simon Rozman | |
This allows buffer alignment and keeps it together with its meta-data. Furthermore, the write buffer has been reduced - as long as we flush after _every_ write, we don't need a 1MiB write buffer. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-19 | wintun: Switch to dynamic packet sizes | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-18 | Change package path | Jason A. Donenfeld | |
2019-02-08 | wintun: Auto-calculate TUN exchange buffer size | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-08 | wintun: Simplify Read method() | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-08 | wintun: Make constants private and adopt Go recommended case | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-08 | wintun: Check for user close in read loop regardless the load | Simon Rozman | |
Do the WaitForSingleObject() always to provide high-load responsiveness. Reorder events so TUN_SIGNAL_CLOSE has priority over TUN_SIGNAL_DATA_AVAIL, to provide high-load responsiveness at all. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-08 | wintun: Adjust tunRWQueue.left member to match Wintun driver | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | wintun: Detect if a foreign interface with the same name exists | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | wintun: add FlushInterface stub | Jason A. Donenfeld | |
2019-02-07 | wintun: Introduce new package for obscuring Windows bits | Jason A. Donenfeld | |
2019-02-07 | tun_windows: Style | Jason A. Donenfeld | |
2019-02-06 | tun_windows: Introduce preliminary TUN interface creation | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-06 | tun_windows: Stop checking minimum size of received TUN packets | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-05 | Fix up errors and paths | Jason A. Donenfeld | |
2019-02-05 | Import windows scafolding | Jason A. Donenfeld | |