summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
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-09conn: remove scope when sanity checking IP address formatJason A. Donenfeld
2019-05-09wintun: fix GUID leading zero paddingSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-03mod: update depsJason A. Donenfeld
2019-05-03setupapi: safer aliasing of slice typesJason A. Donenfeld
2019-05-03wintun: work around GetInterface staleness bugJason A. Donenfeld
2019-05-02wintun: don't retry when not creatingJason A. Donenfeld
The only time we're trying to counteract the race condition is when we're creating a driver. When we're simply looking up all drivers, it doesn't make sense to retry.
2019-04-29wintun: try harder to open registry keyJason A. Donenfeld
This sucks. Can we please find a deterministic way of doing this instead?
2019-04-29go.mod: use vendored winioJason A. Donenfeld
2019-04-23tun: freebsd: work around numerous kernel panics on shutdownJason A. Donenfeld
There are numerous race conditions. But even this will crash it: while true; do ifconfig tun0 create; ifconfig tun0 destroy; done It seems like LLv6 is related, which we're not using anyway, so explicitly disable it on the interface.
2019-04-19setupapi: Fix struct size mismatchesSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-04-19setupapi: actually fix padding by rounding up to sizeof(void*)Jason A. Donenfeld
2019-04-19tun: darwin: write routeSocket variable in helperJason A. Donenfeld
Otherwise the race detector "complains".
2019-04-19main: revise warningsJason A. Donenfeld
2019-04-18device: send: check packet length before freeing elementJason A. Donenfeld
2019-04-18setupapi: Revise DrvInfoDetailData struct size calculationSimon Rozman
Go adds trailing padding to DrvInfoDetailData struct in GOARCH=386 which confuses SetupAPI expecting exactly sizeof(SP_DRVINFO_DETAIL_DATA). Signed-off-by: Simon Rozman <simon@rozman.si>
2019-04-13windows: use proper constants from updated x/sysJason A. Donenfeld
2019-04-13conn: linux: RTA_MARK has moved to x/sysJason 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-09main_windows: use proper version constantJason A. Donenfeld
2019-04-09version: put version in right placeJason A. Donenfeld
2019-04-09version: bump snapshotJason A. Donenfeld
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: rename device using undocumented API that netsh.exe usesJason A. Donenfeld
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-22wintun: query for NetCfgInstanceId several timesJason A. Donenfeld
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.
2019-03-20tun: windows: use new constants in sysJason A. Donenfeld
2019-03-20uapi: remove unhelpful log messagesJason A. Donenfeld
2019-03-21wintun: Use native Win32 API for I/OSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-19uapi: report endpoint errorJason A. Donenfeld
2019-03-18tun: windows: wintun does iocpJason A. Donenfeld
2019-03-13tun: windows: temporary hack for forcing MTUJason A. Donenfeld
2019-03-10wintun: Poll more oftenJason A. Donenfeld
2019-03-10uapi: make ipcerror conform to interfaceJason A. Donenfeld
2019-03-08wintun: Make errors more descriptiveSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-08wintun: Return correct reboot-req flag on CreateInterface() error tooSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-08wintun: Fix double-quoted strings escaping on outputSimon Rozman
Signed-off-by: Simon Rozman <simon@rozman.si>