aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: export PWD for OpenBSD's ksh(1)Jason A. Donenfeld2018-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* version: bump snapshot0.0.20180531Jason A. Donenfeld2018-05-311-1/+1
|
* Print version number in logJason A. Donenfeld2018-05-301-0/+2
|
* Update depsJason A. Donenfeld2018-05-281-3/+3
|
* Fix typo in timersJason A. Donenfeld2018-05-271-1/+1
|
* Disable broadcast mode on *BSDJason A. Donenfeld2018-05-272-26/+0
| | | | Keeping it on makes IPv6 problematic and confuses routing daemons.
* Disappointing anti-sticky experimentJason A. Donenfeld2018-05-274-29/+22
|
* Fix testsJason A. Donenfeld2018-05-241-4/+5
|
* Trick for being extra sensitive to route changesJason A. Donenfeld2018-05-241-5/+16
|
* Back to sticky sockets on androidJason A. Donenfeld2018-05-242-3/+1
|
* Do not build on LinuxJason A. Donenfeld2018-05-241-2/+0
|
* Catch EINTRJason A. Donenfeld2018-05-2411-27/+40
|
* Remove old makefile artifactJason A. Donenfeld2018-05-241-1/+1
|
* version: bump snapshot0.0.20180524Jason A. Donenfeld2018-05-241-1/+1
|
* Add undocumented --version flagJason A. Donenfeld2018-05-243-2/+17
|
* Eye before ee except after seeJason A. Donenfeld2018-05-231-1/+1
|
* No zero sequence numbersJason A. Donenfeld2018-05-231-1/+1
|
* Don't cause a new fake gopath to call depJason A. Donenfeld2018-05-231-2/+2
|
* Infoleak ifnames and be more permissiveJason A. Donenfeld2018-05-232-2/+6
| | | | | Listing interfaces is already permitted by the OS, so we allow this info leak too.
* Adopt GOPATHJason A. Donenfeld2018-05-2319-44/+88
| | | | | GOPATH is annoying, but the Go community pushing me to adopt it is even more annoying.
* Remove more windows cruftJason A. Donenfeld2018-05-231-6/+0
|
* CleanupJason A. Donenfeld2018-05-231-2/+0
|
* Move replay into subpackageJason A. Donenfeld2018-05-235-16/+17
|
* Move tun to subpackageJason A. Donenfeld2018-05-239-131/+127
|
* Avoid sticky sockets on AndroidJason A. Donenfeld2018-05-222-3/+8
| | | | The android policy routing system does insane things.
* Fix integer conversionsJason A. Donenfeld2018-05-225-29/+8
|
* Bump dependencies for OpenBSDJason A. Donenfeld2018-05-221-2/+2
|
* Fix markdownJason A. Donenfeld2018-05-221-2/+2
|
* Add OpenBSD tun driver supportJason A. Donenfeld2018-05-226-36/+411
|
* Fix code duplicationJason A. Donenfeld2018-05-221-5/+0
|
* Notes on FreeBSD limitationsJason A. Donenfeld2018-05-221-1/+1
|
* Just in case darwin changes, we also shutdownJason A. Donenfeld2018-05-221-2/+1
|
* Call shutdown on route socket on freebsdJason A. Donenfeld2018-05-221-2/+1
|
* Minor main.go signal fixesFilippo Valsorda2018-05-211-2/+3
| | | | | | | | * 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>
* Fix Sscanf use in tun_darwinFilippo Valsorda2018-05-211-2/+2
| | | | | License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
* Make successful tests silentFilippo Valsorda2018-05-212-6/+8
| | | | | License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
* Properly close DummyTUN to avoid deadlock in TestNoiseHandshakeFilippo Valsorda2018-05-213-1/+12
| | | | | License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
* User cookie is closer to fwmark than setfibJason A. Donenfeld2018-05-211-2/+2
|
* Remove broken windows cruftJason A. Donenfeld2018-05-212-533/+0
|
* Rework freebsd supportJason A. Donenfeld2018-05-2110-353/+182
|
* Add FreeBSD supportBrady OBrien2018-05-218-20/+792
| | | | Signed-off-by: Brady OBrien <brady.obrien128@gmail.com>
* Close events channel when no status listenerJason A. Donenfeld2018-05-212-3/+10
|
* Straighten out UAPI loggingJason A. Donenfeld2018-05-211-17/+17
|
* Close hack listener before closing channelJason A. Donenfeld2018-05-211-10/+14
|
* ratelimiter: do not run GC with nothing to doJason A. Donenfeld2018-05-211-8/+23
|
* Reasonable punctuation given the spacingJason A. Donenfeld2018-05-213-22/+22
|
* Fix data races in timersJason A. Donenfeld2018-05-204-17/+17
|
* Fix race with closing event channelJason A. Donenfeld2018-05-202-3/+6
| | | | | There's still a tiny race on Linux, since the tun channel is written to from two places.
* StyleJason A. Donenfeld2018-05-202-5/+4
|
* Remove unused mtu variableJason A. Donenfeld2018-05-201-2/+0
|