Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | setupapi: Merge _SP_DRVINFO_DETAIL_DATA and DrvInfoDetailData | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | setupapi: Merge SP_DRVINFO_DATA and DrvInfoData | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | setupapi: Rename SP_REMOVEDEVICE_PARAMS to RemoveDeviceParams | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | setupapi: Rename SP_CLASSINSTALL_HEADER to ClassInstallHeader | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | setupapi: Merge _SP_DEVINSTALL_PARAMS and DevInstallParams | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | setupapi: Merge _SP_DEVINFO_LIST_DETAIL_DATA and DevInfoListDetailData | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | setupapi: Rename SP_DEVINFO_DATA to DevInfoData | 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: Clean excessive setupapi.DevInfo.GetDeviceInfoListDetail() call | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | wintun: Explain rationale behind case-insensitive interface names | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | wintun: Implement TODO in TestSetupDiGetDeviceRegistryProperty() | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-02-07 | wintun: add FlushInterface stub | Jason A. Donenfeld | |
2019-02-07 | wintun: Compare values of GUID, not pointers, when removing | 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 | |
2019-02-05 | Update copyright | Jason A. Donenfeld | |
2018-12-06 | tun: remove nonblock hack for linux | Jason A. Donenfeld | |
This is no longer necessary and actually breaks things Reported-by: Chris Branch <cbranch@cloudflare.com> | |||
2018-11-06 | Use darwin tun on ios | Jason A. Donenfeld | |
2018-10-17 | tun: only call .Fd() once | Jason A. Donenfeld | |
Doing so tends to make the tunnel blocking, so we only retrieve it once before we call SetNonblock, and then cache the result. | |||
2018-09-16 | global: fix up copyright headers | Jason A. Donenfeld | |
2018-07-30 | Fix duplicate copyright line | Jason A. Donenfeld | |
2018-06-09 | Do not build tun device on ios | Jason A. Donenfeld | |
2018-05-27 | Disable broadcast mode on *BSD | Jason A. Donenfeld | |
Keeping it on makes IPv6 problematic and confuses routing daemons. | |||
2018-05-24 | Catch EINTR | Jason A. Donenfeld | |
2018-05-23 | Adopt GOPATH | Jason A. Donenfeld | |
GOPATH is annoying, but the Go community pushing me to adopt it is even more annoying. | |||
2018-05-23 | Move tun to subpackage | Jason A. Donenfeld | |