Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | qemu: test using four cores | Jason A. Donenfeld | 2017-10-31 | 1 | -1/+1 |
| | |||||
* | qemu: work around ccache bugs | Jason A. Donenfeld | 2017-10-31 | 1 | -1/+1 |
| | |||||
* | qemu: allow for cross compilation | Jason A. Donenfeld | 2017-10-31 | 11 | -94/+240 |
| | |||||
* | stats: more robust accounting | Jason A. Donenfeld | 2017-10-31 | 1 | -1/+8 |
| | |||||
* | netns: use time-based test instead of quantity-based | Jason A. Donenfeld | 2017-10-31 | 1 | -4/+4 |
| | |||||
* | netns: use read built-in instead of ncat hack for dmesg | Jason A. Donenfeld | 2017-10-31 | 1 | -4/+2 |
| | | | | | | | | | | This misses lines that are greater than 128 bytes -- read returns -EINVAL -- but the lines we care about anyway are less than that, so we simply keep looping and skip the bad reads when this happens. Not ideal, but probably the best we can do in pure bash. And, importantly, it's much better than streaming this over a TCP socket, which was an even uglier hack. | ||||
* | qemu: put hvc directive into configuration | Jason A. Donenfeld | 2017-10-17 | 2 | -2/+3 |
| | |||||
* | netns: disable accept_dad for all interfaces | Jason A. Donenfeld | 2017-10-17 | 1 | -0/+2 |
| | | | | | Upstream's a2d3f3e33853ef52e5f66b41c3e8ee5710aa3305 broke things in strange and confusing ways. | ||||
* | qemu: newer packages | Jason A. Donenfeld | 2017-10-17 | 1 | -37/+50 |
| | |||||
* | qemu: always create directory before untarring | Jason A. Donenfeld | 2017-10-17 | 1 | -1/+9 |
| | |||||
* | qemu: phase out bitbanging | Jason A. Donenfeld | 2017-10-17 | 3 | -28/+5 |
| | | | | | | | Although I was secretly proud of having figured out these unholy hacks, it turns out -no-reboot lets us do things in a platform-independent way. Suggested-by: Jann Horn <jann@thejh.net> | ||||
* | qemu: open /dev/console if we're started early | Jason A. Donenfeld | 2017-10-17 | 1 | -3/+19 |
| | |||||
* | qemu: simplify shutdown | Jason A. Donenfeld | 2017-10-17 | 1 | -4/+2 |
| | | | | | Now that we have the watchdog, killing the watchdog process is another way of shutting down. | ||||
* | qemu: add more debugging options to main makefile | Jason A. Donenfeld | 2017-10-17 | 2 | -13/+11 |
| | |||||
* | qemu: work on ubuntu toolchain | Jason A. Donenfeld | 2017-10-17 | 1 | -1/+1 |
| | |||||
* | qemu: add build-only target | Jason A. Donenfeld | 2017-10-17 | 1 | -0/+3 |
| | | | | Useful for IDEs | ||||
* | routingtable: iterate progressively | Jason A. Donenfeld | 2017-10-09 | 1 | -2/+2 |
| | |||||
* | qemu: bump stable kernel | Jason A. Donenfeld | 2017-10-09 | 1 | -1/+1 |
| | |||||
* | send: put keypair reference | Jason A. Donenfeld | 2017-10-05 | 1 | -0/+19 |
| | |||||
* | global: satisfy bitshift pedantry | Jason A. Donenfeld | 2017-10-03 | 1 | -1/+1 |
| | | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | qemu: add watchdog for not hanging on oops | Jason A. Donenfeld | 2017-10-02 | 3 | -1/+24 |
| | |||||
* | debug: add better insert target | Jason A. Donenfeld | 2017-10-02 | 1 | -4/+4 |
| | |||||
* | netlink: switch from ioctl to netlink for configuration | Jason A. Donenfeld | 2017-10-02 | 2 | -5/+42 |
| | |||||
* | netns: disable rp_filter for final test | Jason A. Donenfeld | 2017-09-24 | 1 | -0/+4 |
| | |||||
* | queue: entirely rework parallel system | Jason A. Donenfeld | 2017-09-18 | 1 | -1/+0 |
| | | | | | | | | | | This removes our dependency on padata and moves to a different mode of multiprocessing that is more efficient. This began as Samuel Holland's GSoC project and was gradually reworked/redesigned/rebased into this present commit, which is a combination of his initial contribution and my subsequent rewriting and redesigning. | ||||
* | qemu: enable debug info for debug qemu | Jason A. Donenfeld | 2017-09-16 | 1 | -0/+2 |
| | |||||
* | socket: improve reply-to-src algorithm | Jason A. Donenfeld | 2017-08-23 | 2 | -0/+41 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We store the destination IP of incoming packets as the source IP of outgoing packets. When we send outgoing packets, we then ask the routing table for which interface to use and which source address, given our inputs of the destination address and a suggested source address. This all is good and fine, since it means we'll successfully reply using the correct source address, correlating with the destination address for incoming packets. However, what happens when default routes change? Or when interface IP addresses change? Prior to this commit, after getting the response from the routing table of the source address, destination address, and interface, we would then make sure that the source address actually belonged to the outbound interface. If it didn't, we'd reset our source address to zero and re-ask the routing table, in which case the routing table would then give us the default IP address for sending that packet. This worked mostly fine for most purposes, but there was a problem: what if WireGuard legitimately accepted an inbound packet on a default interface using an IP of another interface? In this case, falling back to asking for the default source IP was not a good strategy, since it'd nearly always mean we'd fail to reply using the right source. So, this commit changes the algorithm slightly. Rather than falling back to using the default IP if the preferred source IP doesn't belong to the outbound interface, we have two checks: we make sure that the source IP address belongs to _some_ interface on the system, no matter which one (so long as it's within the network namespace), and we check whether or not the interface of an incoming packet matches the returned interface for the outbound traffic. If both these conditions are true, then we proceed with using this source IP address. If not, we fall back to the default IP address. | ||||
* | netns: work around linux 3.10 issues | Jason A. Donenfeld | 2017-08-03 | 1 | -0/+6 |
| | |||||
* | netns: explictly test reply to sender routing | Jason A. Donenfeld | 2017-08-03 | 1 | -1/+25 |
| | |||||
* | qemu: warn on all unseeded random usage when in debug mode | Jason A. Donenfeld | 2017-07-20 | 1 | -0/+1 |
| | |||||
* | global: wireguard.io --> wireguard.com | Jason A. Donenfeld | 2017-07-20 | 3 | -3/+3 |
| | | | | | Due to concerns with the .io TLD, we are switching to using wireguard.com instead. | ||||
* | qemu: update default testing kernel | Jason A. Donenfeld | 2017-07-07 | 1 | -1/+1 |
| | |||||
* | device: remove icmp conntrack hacks | Jason A. Donenfeld | 2017-06-26 | 1 | -2/+0 |
| | | | | This logic belongs upstream. | ||||
* | ratelimiter: rewrite from scratch | Jason A. Donenfeld | 2017-06-26 | 2 | -2/+1 |
| | | | | | | | This not only removes the depenency on x_tables, but it also gives us much better performance and memory usage. Now, systems are able to have millions of WireGuard interfaces, without having to worry about a thundering herd of garbage collection. | ||||
* | receive: trim incoming packets to IP header length | Jason A. Donenfeld | 2017-06-01 | 1 | -1/+1 |
| | |||||
* | tests: check for stats counter increases | Jason A. Donenfeld | 2017-05-17 | 1 | -0/+4 |
| | | | | | The kernel API for this has changed a lot, so this test is important to ensure our compat layer is doing the right thing. | ||||
* | qemu: new location for test kernels | Jason A. Donenfeld | 2017-05-17 | 1 | -3/+3 |
| | |||||
* | jerry-rig: symlinks are better for tree patching | Jason A. Donenfeld | 2017-05-17 | 1 | -1/+1 |
| | | | | | | Use a symlink instead of lots of ../../.. Suggested-by: Benedikt Morbach <benedikt.morbach@googlemail.com> | ||||
* | noise: redesign preshared key mode | Jason A. Donenfeld | 2017-05-17 | 1 | -2/+2 |
| | |||||
* | qemu: new packages and better debugging | Jason A. Donenfeld | 2017-05-17 | 2 | -12/+13 |
| | |||||
* | netns: cleanup and add diagram | Jason A. Donenfeld | 2017-04-14 | 1 | -7/+18 |
| | |||||
* | qemu: work on ARM64 | Jason A. Donenfeld | 2017-04-14 | 3 | -5/+21 |
| | |||||
* | compat: support 3.12 | Jason A. Donenfeld | 2017-04-09 | 1 | -0/+1 |
| | |||||
* | debug: cleanups | Jason A. Donenfeld | 2017-04-08 | 2 | -3/+3 |
| | |||||
* | qemu: ensure kernel is configured before headers are installed | Jason A. Donenfeld | 2017-04-08 | 1 | -1/+1 |
| | |||||
* | qemu: new stable kernel | Jason A. Donenfeld | 2017-04-04 | 1 | -1/+1 |
| | |||||
* | Update copyright | Jason A. Donenfeld | 2017-01-10 | 2 | -2/+2 |
| | |||||
* | qemu: kernel.org mirrors get updates slowly | Jason A. Donenfeld | 2016-12-29 | 1 | -2/+2 |
| | |||||
* | compat: support 3.18, 3.19, 4.0 | Jason A. Donenfeld | 2016-12-26 | 2 | -3/+3 |
| | |||||
* | qemu: 4.10 needs posix timers | Jason A. Donenfeld | 2016-12-26 | 1 | -0/+1 |
| |