summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-07-24uapi: allow overriding socket directory at compile timeJason A. Donenfeld
2018-07-16send: better debug message for failed data packetJason A. Donenfeld
2018-06-13version: bump snapshotJason A. Donenfeld
2018-06-12Support IPv6-less kernelsJason A. Donenfeld
2018-06-09Do not build tun device on iosJason A. Donenfeld
2018-06-02Fix duplicated wordingJason A. Donenfeld
2018-06-02Makefile: export PWD for OpenBSD's ksh(1)Jason A. Donenfeld
Interestingly, ksh(1) on OpenBSD does not export PWD by default, and it also has a notion of the "logical cwd" vs the "physical cwd", with the latter being passed to chdir, but the former being stored in the non-exported PWD and displayed to the user. This means that if you `cd` into a directory that's comprised of symlinks, exec'd processes will see the physical path. Observe: # ksh # mkdir a # ln -s a b # cd b # pwd /root/b # ksh -c pwd /root/a The fact of separating physical and logical paths is not too uncommon for shells (bash does it too), but not exporting PWD is very odd. Since this is common behavior for many shells, libraries that return the working directory will do something strange: they `stat(".")` and then `stat(getenv("PWD"))`, and if these point to the same inode, they roll with the value of `getenv("PWD")`, or otherwise fallback to asking the kernel for the cwd. Since PWD was not exported by ksh(1), Go's dep utility did not understand it was operating inside of our faked GOPATH and became upset. This patch works around the whole situation by simply exporting PWD before executing dep.
2018-05-31version: bump snapshotJason A. Donenfeld
2018-05-30Print version number in logJason A. Donenfeld
2018-05-28Update depsJason A. Donenfeld
2018-05-27Fix typo in timersJason A. Donenfeld
2018-05-27Disable broadcast mode on *BSDJason A. Donenfeld
Keeping it on makes IPv6 problematic and confuses routing daemons.
2018-05-27Disappointing anti-sticky experimentJason A. Donenfeld
2018-05-24Fix testsJason A. Donenfeld
2018-05-24Trick for being extra sensitive to route changesJason A. Donenfeld
2018-05-24Back to sticky sockets on androidJason A. Donenfeld
2018-05-24Do not build on LinuxJason A. Donenfeld
2018-05-24Catch EINTRJason A. Donenfeld
2018-05-24Remove old makefile artifactJason A. Donenfeld
2018-05-24version: bump snapshotJason A. Donenfeld
2018-05-24Add undocumented --version flagJason A. Donenfeld
2018-05-23Eye before ee except after seeJason A. Donenfeld
2018-05-23No zero sequence numbersJason A. Donenfeld
2018-05-23Don't cause a new fake gopath to call depJason A. Donenfeld
2018-05-23Infoleak ifnames and be more permissiveJason A. Donenfeld
Listing interfaces is already permitted by the OS, so we allow this info leak too.
2018-05-23Adopt GOPATHJason A. Donenfeld
GOPATH is annoying, but the Go community pushing me to adopt it is even more annoying.
2018-05-23Remove more windows cruftJason A. Donenfeld
2018-05-23CleanupJason A. Donenfeld
2018-05-23Move replay into subpackageJason A. Donenfeld
2018-05-23Move tun to subpackageJason A. Donenfeld
2018-05-22Avoid sticky sockets on AndroidJason A. Donenfeld
The android policy routing system does insane things.
2018-05-22Fix integer conversionsJason A. Donenfeld
2018-05-22Bump dependencies for OpenBSDJason A. Donenfeld
2018-05-22Fix markdownJason A. Donenfeld
2018-05-22Add OpenBSD tun driver supportJason A. Donenfeld
2018-05-22Fix code duplicationJason A. Donenfeld
2018-05-22Notes on FreeBSD limitationsJason A. Donenfeld
2018-05-22Just in case darwin changes, we also shutdownJason A. Donenfeld
2018-05-22Call shutdown on route socket on freebsdJason A. Donenfeld
2018-05-21Minor main.go signal fixesFilippo Valsorda
* Buffer the signal channel as it's non-blocking on the sender side * Notify on SIGTERM instead of the uncatchable SIGKILL License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
2018-05-21Fix Sscanf use in tun_darwinFilippo Valsorda
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
2018-05-21Make successful tests silentFilippo Valsorda
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
2018-05-21Properly close DummyTUN to avoid deadlock in TestNoiseHandshakeFilippo Valsorda
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
2018-05-21User cookie is closer to fwmark than setfibJason A. Donenfeld
2018-05-21Remove broken windows cruftJason A. Donenfeld
2018-05-21Rework freebsd supportJason A. Donenfeld
2018-05-21Add FreeBSD supportBrady OBrien
Signed-off-by: Brady OBrien <brady.obrien128@gmail.com>
2018-05-21Close events channel when no status listenerJason A. Donenfeld
2018-05-21Straighten out UAPI loggingJason A. Donenfeld
2018-05-21Close hack listener before closing channelJason A. Donenfeld