Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | net: implement ECN handling, rfc6040 stylefd/propagate-DSCP-bits | 2019-02-25 | 7 | -43/+164 | |
| | | | | | | | | | | To decide whether we should use the compatibility mode or the normal mode with a peer, we use the handshake messages as a signaling channel. If we receive the expected ECN bits, it most likely means they're running a compatible version. Signed-off-by: Florent Daigniere <nextgens@freenetproject.org> | ||||
* | send: propagate DSCP bits to the outer tunnel | 2019-02-23 | 4 | -14/+46 | |
| | | | | | | | | | | | | | Like many, I am using WiFi a lot and often on congested networks. Without this, Wireguard strips the DSCP bits, preventing WME from kicking in and improving the audio/video experience. Yes, it's technically an information leak. Who cares? It's not like if traffic analysis based on packet sizes or timings wasn't a thing. This is the first patch of the serie, more work has to happen on ECN Signed-off-by: Florent Daigniere <nextgens@freenetproject.org> | ||||
* | Change package path | 2019-02-18 | 17 | -19/+19 | |
| | |||||
* | Bump dependencies for ARM ChaCha20 | 2019-02-14 | 2 | -9/+9 | |
| | |||||
* | wintun: Auto-calculate TUN exchange buffer size | 2019-02-08 | 1 | -8/+7 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Simplify Read method() | 2019-02-08 | 1 | -51/+51 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Make constants private and adopt Go recommended case | 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 | 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 | 2019-02-08 | 1 | -2/+2 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Merge _SP_DRVINFO_DETAIL_DATA and DrvInfoDetailData | 2019-02-07 | 4 | -55/+60 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Merge SP_DRVINFO_DATA and DrvInfoData | 2019-02-07 | 4 | -78/+78 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Rename SP_REMOVEDEVICE_PARAMS to RemoveDeviceParams | 2019-02-07 | 2 | -4/+4 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Rename SP_CLASSINSTALL_HEADER to ClassInstallHeader | 2019-02-07 | 4 | -20/+20 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Merge _SP_DEVINSTALL_PARAMS and DevInstallParams | 2019-02-07 | 4 | -63/+25 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Merge _SP_DEVINFO_LIST_DETAIL_DATA and DevInfoListDetailData | 2019-02-07 | 4 | -26/+26 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Rename SP_DEVINFO_DATA to DevInfoData | 2019-02-07 | 4 | -81/+81 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Detect if a foreign interface with the same name exists | 2019-02-07 | 2 | -6/+49 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Clean excessive setupapi.DevInfo.GetDeviceInfoListDetail() call | 2019-02-07 | 1 | -14/+0 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Explain rationale behind case-insensitive interface names | 2019-02-07 | 1 | -1/+5 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: Implement TODO in TestSetupDiGetDeviceRegistryProperty() | 2019-02-07 | 1 | -3/+11 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | wintun: add FlushInterface stub | 2019-02-07 | 2 | -4/+18 | |
| | |||||
* | main_windows: Get iface name from argument | 2019-02-07 | 1 | -2/+1 | |
| | |||||
* | wintun: Compare values of GUID, not pointers, when removing | 2019-02-07 | 1 | -1/+1 | |
| | |||||
* | main_windows: Catch more exit events | 2019-02-07 | 1 | -0/+3 | |
| | |||||
* | wintun: Introduce new package for obscuring Windows bits | 2019-02-07 | 12 | -487/+527 | |
| | |||||
* | tun_windows: Style | 2019-02-07 | 1 | -11/+13 | |
| | |||||
* | setupapi: Lower case params | 2019-02-07 | 3 | -184/+184 | |
| | |||||
* | setupapi: Do not export the toGo/toWindows functions | 2019-02-07 | 2 | -3/+3 | |
| | |||||
* | setupapi: Pass pointers instead of values | 2019-02-07 | 1 | -9/+9 | |
| | |||||
* | tun_windows: Introduce preliminary TUN interface creation | 2019-02-06 | 3 | -5/+556 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | tun_windows: Stop checking minimum size of received TUN packets | 2019-02-06 | 1 | -2/+1 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Add DrvInfoDetailData.IsCompatible() to simplify HID detection | 2019-02-06 | 2 | -1/+29 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Add SP_DRVINFO_DATA.IsNewer() method to simplify comparison | 2019-02-06 | 2 | -0/+48 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Make toUTF16() public and add UTF16ToBuf() counterpart | 2019-02-06 | 2 | -4/+28 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Fix up errors and paths | 2019-02-05 | 3 | -10/+12 | |
| | |||||
* | conn: close ipv4 socket when ipv6 socket fails | 2019-02-05 | 1 | -1/+0 | |
| | |||||
* | setupapi: Add support for driver info lists | 2019-02-05 | 4 | -0/+398 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Move Go<>Windows struct marshaling to types_windows.go | 2019-02-05 | 2 | -27/+47 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Add support for SetupDi(Get|Set)DeviceRegistryProperty() | 2019-02-05 | 4 | -24/+242 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | setupapi: Introduce DevInfo methods for cleaner code | 2019-02-05 | 3 | -19/+74 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Add support for setupapi.SetupDi(Get|Set)SelectedDevice() | 2019-02-05 | 3 | -0/+78 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Reorder data-types and functions to match SetupAPI.h | 2019-02-05 | 4 | -334/+349 | |
| | | | | | | | | | | | Adding functions with non-consistent order made setupapi package a mess. While we could reorder data-types and functions by alphabet - it would make searching easier - it would put ...Get... and ...Set... functions quite apart. Therefore, the SetupAPI.h order was adopted. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Add support for setupapi.SetupDiCreateDeviceInfo() | 2019-02-05 | 4 | -1/+67 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Add support for setupapi.setupDiCreateDeviceInfoListEx() | 2019-02-05 | 3 | -0/+50 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Stop accessing SetupDiGetDeviceInfoListDetail() output on error | 2019-02-05 | 1 | -20/+20 | |
| | | | | | | | The data returned by SetupDiGetDeviceInfoListDetail() is nil on error which will cause the test to crash should the function fail. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Unify certain variable names | 2019-02-05 | 2 | -12/+10 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Simplify SetupDiEnumDeviceInfo() synopsis | 2019-02-05 | 2 | -11/+10 | |
| | | | | | | | The SetupDiEnumDeviceInfo() now returns a SP_DEVINFO_DATA rather than taking it on input to fill it on return. Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Change generic local variable names with meaningful replacements | 2019-02-05 | 1 | -41/+42 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Add support for setupapi.SetupDiClassGuidsFromNameEx() | 2019-02-05 | 3 | -0/+75 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> | ||||
* | Clean an unused constant | 2019-02-05 | 1 | -1/+0 | |
| | | | | Signed-off-by: Simon Rozman <simon@rozman.si> |