Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | wintun: Add TUN device locking | Simon Rozman | 2019-02-20 | 1 | -40/+64 |
| | | | | | | | | | | | | 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> | ||||
* | wintun: Move exchange buffer in separate struct on heap | Simon Rozman | 2019-02-20 | 1 | -33/+44 |
| | | | | | | | | | 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> | ||||
* | wintun: Switch to dynamic packet sizes | Simon Rozman | 2019-02-19 | 1 | -50/+46 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Change package path | Jason A. Donenfeld | 2019-02-18 | 1 | -1/+1 |
| | |||||
* | wintun: Auto-calculate TUN exchange buffer size | Simon Rozman | 2019-02-08 | 1 | -8/+7 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Simplify Read method() | Simon Rozman | 2019-02-08 | 1 | -51/+51 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Make constants private and adopt Go recommended case | Simon Rozman | 2019-02-08 | 1 | -29/+29 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Check for user close in read loop regardless the load | Simon Rozman | 2019-02-08 | 1 | -24/+22 |
| | | | | | | | | | 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> | ||||
* | wintun: Adjust tunRWQueue.left member to match Wintun driver | Simon Rozman | 2019-02-08 | 1 | -2/+2 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Detect if a foreign interface with the same name exists | Simon Rozman | 2019-02-07 | 1 | -3/+13 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: add FlushInterface stub | Jason A. Donenfeld | 2019-02-07 | 1 | -0/+5 |
| | |||||
* | wintun: Introduce new package for obscuring Windows bits | Jason A. Donenfeld | 2019-02-07 | 1 | -480/+13 |
| | |||||
* | tun_windows: Style | Jason A. Donenfeld | 2019-02-07 | 1 | -11/+13 |
| | |||||
* | tun_windows: Introduce preliminary TUN interface creation | Simon Rozman | 2019-02-06 | 1 | -5/+492 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | tun_windows: Stop checking minimum size of received TUN packets | Simon Rozman | 2019-02-06 | 1 | -2/+1 |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Fix up errors and paths | Jason A. Donenfeld | 2019-02-05 | 1 | -7/+7 |
| | |||||
* | Import windows scafolding | Jason A. Donenfeld | 2019-02-05 | 1 | -0/+286 |