aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* data: move from spinlocks to lockless data structurejd/lockless-queuingJason A. Donenfeld2017-09-161-1/+1
| | | | | Reference: https://www.cs.rochester.edu/research/synchronization/pseudocode/queues.html Original-code-from: @aegis
* data: entirely rework parallel systemSamuel Holland2017-09-151-1/+0
| | | | | | This removes our dependency on padata. Signed-off-by: Samuel Holland <samuel@sholland.org>
* qemu: enable debug info for debug qemuJason A. Donenfeld2017-09-151-0/+2
|
* socket: improve reply-to-src algorithmJason A. Donenfeld2017-08-232-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 issuesJason A. Donenfeld2017-08-031-0/+6
|
* netns: explictly test reply to sender routingJason A. Donenfeld2017-08-031-1/+25
|
* qemu: warn on all unseeded random usage when in debug modeJason A. Donenfeld2017-07-201-0/+1
|
* global: wireguard.io --> wireguard.comJason A. Donenfeld2017-07-203-3/+3
| | | | | Due to concerns with the .io TLD, we are switching to using wireguard.com instead.
* qemu: update default testing kernelJason A. Donenfeld2017-07-071-1/+1
|
* device: remove icmp conntrack hacksJason A. Donenfeld2017-06-261-2/+0
| | | | This logic belongs upstream.
* ratelimiter: rewrite from scratchJason A. Donenfeld2017-06-262-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 lengthJason A. Donenfeld2017-06-011-1/+1
|
* tests: check for stats counter increasesJason A. Donenfeld2017-05-171-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 kernelsJason A. Donenfeld2017-05-171-3/+3
|
* jerry-rig: symlinks are better for tree patchingJason A. Donenfeld2017-05-171-1/+1
| | | | | | Use a symlink instead of lots of ../../.. Suggested-by: Benedikt Morbach <benedikt.morbach@googlemail.com>
* noise: redesign preshared key modeJason A. Donenfeld2017-05-171-2/+2
|
* qemu: new packages and better debuggingJason A. Donenfeld2017-05-172-12/+13
|
* netns: cleanup and add diagramJason A. Donenfeld2017-04-141-7/+18
|
* qemu: work on ARM64Jason A. Donenfeld2017-04-143-5/+21
|
* compat: support 3.12Jason A. Donenfeld2017-04-091-0/+1
|
* debug: cleanupsJason A. Donenfeld2017-04-082-3/+3
|
* qemu: ensure kernel is configured before headers are installedJason A. Donenfeld2017-04-081-1/+1
|
* qemu: new stable kernelJason A. Donenfeld2017-04-041-1/+1
|
* Update copyrightJason A. Donenfeld2017-01-102-2/+2
|
* qemu: kernel.org mirrors get updates slowlyJason A. Donenfeld2016-12-291-2/+2
|
* compat: support 3.18, 3.19, 4.0Jason A. Donenfeld2016-12-262-3/+3
|
* qemu: 4.10 needs posix timersJason A. Donenfeld2016-12-261-0/+1
|
* tests: avoid non-strict writes via printfJason A. Donenfeld2016-12-161-11/+8
|
* qemu: bump kernel versionJason A. Donenfeld2016-12-091-3/+3
|
* tests: directly kill nmapJason A. Donenfeld2016-12-041-7/+12
|
* tests: make sure ncat gets killedJason A. Donenfeld2016-12-043-11/+11
|
* tests: be sure we get all messagesJason A. Donenfeld2016-11-291-1/+6
|
* ratelimiter: load hashlimit at modinsert timeJason A. Donenfeld2016-11-291-1/+1
| | | | This fixes a potential race with net_lock and rtnl_lock.
* tests: veth does not come up immediatelyJason A. Donenfeld2016-11-211-0/+7
|
* headers: cleanup noticesJason A. Donenfeld2016-11-212-0/+4
|
* main: add version to dmesgJason A. Donenfeld2016-11-211-1/+1
|
* tests: trim outputJason A. Donenfeld2016-11-151-20/+4
|
* tests: use private ipv6 addressesJason A. Donenfeld2016-11-151-18/+18
|
* socket: ensure that saddr routing can deal with interface removalJason A. Donenfeld2016-11-151-0/+32
|
* qemu: kasan needs more memoryJason A. Donenfeld2016-11-061-1/+1
|
* qemu: use sparsemem always, for kasanJason A. Donenfeld2016-11-061-0/+1
|
* qemu: fail if module selftests failJason A. Donenfeld2016-11-051-2/+12
|
* qemu: move marker to top and flushJason A. Donenfeld2016-11-051-3/+3
|
* qemu: work around termio race conditionJason A. Donenfeld2016-11-051-1/+6
|
* qemu: move build outside of kernel dir to avoid kernel's make cleanJason A. Donenfeld2016-11-052-3/+1
|
* qemu: newer default kernelJason A. Donenfeld2016-11-031-1/+1
|
* remote-run: reflect recent makefile changesexperimental-0.0.20161001Jason A. Donenfeld2016-09-291-1/+1
|
* git: organize ignore filesJason A. Donenfeld2016-09-291-0/+2
|
* netns: remove dangling $@Jason A. Donenfeld2016-08-291-4/+4
|
* tests: test jumbo frames with more transferJason A. Donenfeld2016-08-211-4/+19
|