aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/receive.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-05-22wg-quick: freebsd: add new implementationJason A. Donenfeld2-16/+434
2018-05-22wg-quick: darwin: do not remove routes when no real interfaceJason A. Donenfeld1-0/+1
2018-05-22wg-quick: darwin: rename namefile environment variableJason A. Donenfeld1-1/+1
This paves the way for an openbsd implementation.
2018-05-22tools: fix OpenBSD buildFilippo Valsorda4-2/+4
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
2018-05-22compat: work around qcom 4.9 backportsJason A. Donenfeld1-0/+3
Qualcomm backported the get_random_u32 patch, even though kernel.org didn't, which is a problem. They also backported another patch in the same place which defines a new macro variable, so use this as a differentiator.
2018-05-22qemu: bump default kernel for gcc 8.1Jason A. Donenfeld1-1/+1
2018-05-22allowedips: set pointer to null before freeingJason A. Donenfeld1-2/+3
2018-05-22ncat-client-server: do not always call sudo and use env bashJason A. Donenfeld1-2/+3
2018-05-19version: bump snapshot0.0.20180519Jason A. Donenfeld2-2/+2
2018-05-19timers: no need to clear keepalive in persistent keepaliveJason A. Donenfeld1-4/+1
We do this after sending the keepalive anyway. This is something of a regression, though, since before we'd cancel and then send, but now we send and then cancel, so it introduces a potential race, but hopefully that isn't too big of a deal.
2018-05-19timers: clear send_keepalive timer on sending handshake responseJason A. Donenfeld3-6/+12
We reorganize this into also doing so on sending keepalives itself, which means the state machine is much more consistent, even if this was already implied.
2018-05-19timers: fix up commentJason A. Donenfeld1-2/+2
2018-05-19timers: remove slack_timeJason A. Donenfeld1-8/+2
It's already done implicitly by recent kernels and it's not adding much here.
2018-05-18timers: reinitialize state on initJason A. Donenfeld1-0/+3
2018-05-18tools: fix errno propagation and messagesJason A. Donenfeld5-9/+8
2018-05-18timers: round up instead of down in slack_timeJason A. Donenfeld1-2/+2
On systems with a 100hz tick, this causes handshakes to be retried in slightly less than 5 seconds, which means they aren't sent at all. This has the effect of the handshakes entirely stopping their retry cycle until the next data packet is sent. Reported-by: Andrew He <andrewhe@mit.edu>
2018-05-18chacha20poly1305: add mips32 implementationRené van Dorst4-5/+913
Signed-off-by: René van Dorst <opensource@vdorst.com>
2018-05-18device: remove allowedips before individual peersJason A. Donenfeld1-1/+1
This avoids an O(n^2) traversal in favor of an O(n) one.
2018-05-17wg-quick: darwin: simpler inclusion checkJason A. Donenfeld1-1/+1
2018-05-17wg-quick: darwin: reorder functionsJason A. Donenfeld1-19/+19
2018-05-17wg-quick: darwin: networksetup does not like missing stdioJason A. Donenfeld1-1/+1
2018-05-17wg-quick: darwin: avoid routing loop if no defaultJason A. Donenfeld1-6/+16
2018-05-17wg-quick: darwin: sometimes there are no network servicesJason A. Donenfeld1-2/+1
2018-05-16wg-quick: use invoking shell in auto rootingJason A. Donenfeld2-2/+3
2018-05-16wg-quick: add intentionally undocumented userspace implementation knobJason A. Donenfeld2-3/+3
This knob might disappear at some point, and we don't want to encourage its use, so it's not being documented, but this should help with development of new implementations.
2018-05-16wg-quick: darwin: use bash from environment and require bash 4+Jason A. Donenfeld2-23/+23
For properly configured Homebrew installations /usr/local/bin should be before /bin, so this should still work. This allows the script to be used in more than one setting.
2018-05-16wg-quick: darwin: restore DNS on downJason A. Donenfeld1-13/+25
2018-05-16wg-quick: darwin: bash correctnessJason A. Donenfeld1-5/+4
2018-05-16wg-quick: darwin: remove v6 routes after shutdownJason A. Donenfeld1-3/+3
This works around a Darwin kernel bug regarding interface removal.
2018-05-16wg-quick: darwin: ensure socket directory existsJason A. Donenfeld1-5/+1
2018-05-16dns-hatchet: update pathsJason A. Donenfeld1-1/+1
Suggested-by: Martin Hauke <mardnh@gmx.de>
2018-05-15version: bump snapshot0.0.20180514Jason A. Donenfeld2-2/+2
2018-05-15ncat-client-server: add wg-quick variantJason A. Donenfeld2-4/+37