summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-09-24More poolingJason A. Donenfeld
2018-09-22Fixup buffer freeingJason A. Donenfeld
2018-09-16send: more precise padding calculationJason A. Donenfeld
2018-09-16device: preallocated buffers schemeJason A. Donenfeld
Not useful now but quite possibly later.
2018-09-16Change queueing drop order and fix memory leaksJason A. Donenfeld
If the queues are full, we drop the present packet, which is better for network traffic flow. Also, we try to fix up the memory leaks with not putting buffers from our shared pool.
2018-09-16send: use accessor function for buffer poolJason A. Donenfeld
2018-09-16Fixed port overwrite issue on kernels without ipv6Mathias Hall-Andersen
Fixed an issue in CreateBind for Linux: If ipv6 was not supported the error code would be correctly identified as EAFNOSUPPORT and ipv4 binding attempted. However the port would be set to 0, which results in the subsequent create4 call requesting a random port rather than the one provided to CreateBind. This issue was identified by: Kent Friis <leeloored@gmx.com>
2018-09-16global: fix up copyright headersJason A. Donenfeld
2018-09-02uapi: insert peer version placeholderJason A. Donenfeld
While we don't want people to ever use old protocols, people will complain if the API "changes", so explicitly make the unset protocol mean the latest, and add a dummy mechanism of specifying the protocol on a per-peer basis, which we hope nobody actually ever uses.
2018-07-30Fix duplicate copyright lineJason A. Donenfeld
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>