aboutsummaryrefslogtreecommitdiffstats
path: root/replay_test.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-05-04uapi: use kqueue for sock deletion on darwinJason A. Donenfeld2-6/+42
2018-05-04tun: print automatically assigned interface name to stdoutJason A. Donenfeld1-1/+7
This way scripts know what process they just started.
2018-05-04tun: allow darwin to auto assign namesJason A. Donenfeld2-10/+20
2018-05-04warning: put into mainJason A. Donenfeld3-72/+41
2018-05-03global: Add SPDX tags and copyright headerJason A. Donenfeld50-8/+248
Mathias should probably add his copyright headers to each file too.
2018-05-03Daemonize with environment variableJason A. Donenfeld2-31/+19
2018-05-03Start to dust off DarwinJason A. Donenfeld8-175/+202
2018-05-01Add missing locks and fix debug output, and try to flush queuesJason A. Donenfeld5-42/+116
Flushing queues on exit is sort of a partial solution, but this could be better. Really what we want is for no more packets to be enqueued after isUp is set to false.
2018-04-27Clear src cache if route changes to new ifindexJason A. Donenfeld2-14/+151
2018-04-27Fix error handling and cleanup of netlink listenerJason A. Donenfeld1-22/+29
2018-04-20Fix wrong debug messagesJason A. Donenfeld1-1/+3
2018-04-20Rework sticky socketsJason A. Donenfeld3-269/+150
2018-04-20Check for correct first nibbleJason A. Donenfeld1-1/+1
The code before assumed that the flow label was always zero.
2018-04-20Signal using select and a pipe for bringing down TUN readerJason A. Donenfeld1-9/+104
Waiting on resolution of these to fix in better way: - https://github.com/golang/go/issues/22939 - https://github.com/golang/go/issues/24331
2018-04-19We can determine the interface name ourselvesJason A. Donenfeld2-4/+8
2018-04-19Do not hard code MTU defaultJason A. Donenfeld1-2/+2
2018-04-18Fixed read from closed channelMathias Hall-Andersen4-10/+26
A premature waitgroup .Done resulted in reading from closed channel. This caused a nil-pointer deref & crash. Added additional debugging when closing routines.
2018-04-18Allow determining nameJason A. Donenfeld3-7/+28
2018-04-18Use socketcall on x86Jason A. Donenfeld3-44/+89
2018-04-18Use simple 16-bit integer for persistent keepaliveJason A. Donenfeld3-11/+8
Races for this aren't a huge problem.
2018-04-18Align 64-bit atomicsJason A. Donenfeld2-2/+2
64-bit varibles that are accessed using the Go atomic functions must be 8-byte aligned on 32-bit platforms. Otherwise there are crashes.
2018-03-08Begin work on full device<->device unit-testMathias Hall-Andersen4-1/+142
To simulate a full interaction between two WireGuard instances without networking, using dummy instances of the interfaces
2018-02-28Support nopi modeJason A. Donenfeld1-16/+27
2018-02-18Close tun fd when bringing down tunnelJason A. Donenfeld1-1/+1
2018-02-18Fix timer typoJason A. Donenfeld1-1/+1
2018-02-18Seperated fwmark update code into functionMathias Hall-Andersen2-9/+34
2018-02-13MPLv2 for App StoreJason A. Donenfeld1-1/+10
2018-02-13Reimplemented bind_rtmgrp in pure GoDominik Süß1-40/+30
Getting rid of the Cgo dependency for listing on netlink. Ported original patch from "syscall" to "golang.org/x/sys/unix". Signed-off-by: Dominik Süß <dominik.suess@outlook.at> Co-Authored-By: Mathias Hall-Andersen <mathias@hall-andersen.dk>
2018-02-12Use relative importsJason A. Donenfeld9-3/+3
2018-02-12Revert "Don't use modules"Mathias Hall-Andersen9-20/+23
This reverts commit bffe99aeadae09abd02f2bd3184925af6b680535.
2018-02-12Don't use modulesJason A. Donenfeld9-23/+20
Feel free to revert this if you have a strong feeling about it. But so far as I can see, it adds a lot of complexity for basically no upsides.
2018-02-11Moved test-processes to backgroundMathias Hall-Andersen1-2/+2
2018-02-11TUN status hack was causing spam during shutdownMathias Hall-Andersen4-36/+39
2018-02-11Added missing mutex acquisitionMathias Hall-Andersen1-0/+3
2018-02-11Removed exported methods from ratelimiter packageMathias Hall-Andersen2-42/+38
2018-02-11Moved ratelimiter to internal packageMathias Hall-Andersen6-24/+60
2018-02-11Moved tai64n into sub-packageMathias Hall-Andersen3-48/+47
2018-02-11Fixed tabsMathias Hall-Andersen4-392/+392
2018-02-11Reverted event changesMathias Hall-Andersen3-57/+18
This feature was not needed for Android, upon further inspection.
2018-02-09Started migration to sub-packagesMathias Hall-Andersen6-29/+69
2018-02-07Go treats underscores speciallyJason A. Donenfeld3-0/+0
In case there's ever a platform called helpers or protocol, we don't want to be doing this.
2018-02-04Work on logging formatMathias Hall-Andersen7-32/+51
2018-02-04Removed debugging locksMathias Hall-Andersen2-48/+39
2018-02-04Align with go library layoutMathias Hall-Andersen50-4/+4
2018-02-02Fixed testsMathias Hall-Andersen3-22/+35
2018-02-02Clear cryptographic state when interface downMathias Hall-Andersen5-41/+58
Attempts to clear the cryptographic state for every peer when the device goes down.
2018-02-02Rework of entire locking systemMathias Hall-Andersen10-224/+371
Locking on the Device instance is now much more fined-grained, seperating out the fields into "resources" st. most common interactions only require a small number.