aboutsummaryrefslogtreecommitdiffstats
path: root/logger.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-09-24More poolingJason A. Donenfeld4-56/+148
2018-09-22Fixup buffer freeingJason A. Donenfeld3-9/+21
2018-09-16send: more precise padding calculationJason A. Donenfeld1-5/+7
2018-09-16device: preallocated buffers schemeJason A. Donenfeld1-7/+26
Not useful now but quite possibly later.
2018-09-16Change queueing drop order and fix memory leaksJason A. Donenfeld2-75/+47
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. Donenfeld1-1/+1
2018-09-16Fixed port overwrite issue on kernels without ipv6Mathias Hall-Andersen1-13/+35
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. Donenfeld52-89/+52
2018-09-02uapi: insert peer version placeholderJason A. Donenfeld1-0/+8
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. Donenfeld1-2/+0
2018-07-24uapi: allow overriding socket directory at compile timeJason A. Donenfeld2-2/+4
2018-07-16send: better debug message for failed data packetJason A. Donenfeld1-1/+2
2018-06-13version: bump snapshot0.0.20180613Jason A. Donenfeld2-1/+3
2018-06-12Support IPv6-less kernelsJason A. Donenfeld2-52/+106
2018-06-09Do not build tun device on iosJason A. Donenfeld1-0/+2
2018-06-02Fix duplicated wordingJason A. Donenfeld1-4/+4
2018-06-02Makefile: export PWD for OpenBSD's ksh(1)Jason A. Donenfeld1-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.
2018-05-31version: bump snapshot0.0.20180531Jason A. Donenfeld1-1/+1
2018-05-30Print version number in logJason A. Donenfeld1-0/+2
2018-05-28Update depsJason A. Donenfeld1-3/+3
2018-05-27Fix typo in timersJason A. Donenfeld1-1/+1
2018-05-27Disable broadcast mode on *BSDJason A. Donenfeld2-26/+0
Keeping it on makes IPv6 problematic and confuses routing daemons.
2018-05-27Disappointing anti-sticky experimentJason A. Donenfeld4-29/+22
2018-05-24Fix testsJason A. Donenfeld1-4/+5
2018-05-24Trick for being extra sensitive to route changesJason A. Donenfeld1-5/+16
2018-05-24Back to sticky sockets on androidJason A. Donenfeld2-3/+1
2018-05-24Do not build on LinuxJason A. Donenfeld1-2/+0
2018-05-24Catch EINTRJason A. Donenfeld11-27/+40
2018-05-24Remove old makefile artifactJason A. Donenfeld1-1/+1
2018-05-24version: bump snapshot0.0.20180524Jason A. Donenfeld1-1/+1
2018-05-24Add undocumented --version flagJason A. Donenfeld3-2/+17
2018-05-23Eye before ee except after seeJason A. Donenfeld1-1/+1
2018-05-23No zero sequence numbersJason A. Donenfeld1-1/+1
2018-05-23Don't cause a new fake gopath to call depJason A. Donenfeld1-2/+2
2018-05-23Infoleak ifnames and be more permissiveJason A. Donenfeld2-2/+6
Listing interfaces is already permitted by the OS, so we allow this info leak too.
2018-05-23Adopt GOPATHJason A. Donenfeld19-44/+88
GOPATH is annoying, but the Go community pushing me to adopt it is even more annoying.
2018-05-23Remove more windows cruftJason A. Donenfeld1-6/+0
2018-05-23CleanupJason A. Donenfeld1-2/+0
2018-05-23Move replay into subpackageJason A. Donenfeld5-16/+17
2018-05-23Move tun to subpackageJason A. Donenfeld9-131/+127
2018-05-22Avoid sticky sockets on AndroidJason A. Donenfeld2-3/+8
The android policy routing system does insane things.
2018-05-22Fix integer conversionsJason A. Donenfeld5-29/+8
2018-05-22Bump dependencies for OpenBSDJason A. Donenfeld1-2/+2
2018-05-22Fix markdownJason A. Donenfeld1-2/+2
2018-05-22Add OpenBSD tun driver supportJason A. Donenfeld6-36/+411
2018-05-22Fix code duplicationJason A. Donenfeld1-5/+0
2018-05-22Notes on FreeBSD limitationsJason A. Donenfeld1-1/+1
2018-05-22Just in case darwin changes, we also shutdownJason A. Donenfeld1-2/+1
2018-05-22Call shutdown on route socket on freebsdJason A. Donenfeld1-2/+1
2018-05-21Minor main.go signal fixesFilippo Valsorda1-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>