Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | allowedips: single expression endian choicejd/endianness-trick | Jason A. Donenfeld | 2018-05-04 | 1 | -4/+1 |
| | | | | | | This will upset millions of curious onlookers, and people will begin to doubt my judgement and sanity. But this really is cleaner to express as a single statement. | ||||
* | allowedips: use native endian on lookup | Jason A. Donenfeld | 2018-05-04 | 1 | -21/+40 |
| | |||||
* | embeddable-wg-library: zero attribute padding | Jason A. Donenfeld | 2018-05-03 | 1 | -0/+4 |
| | | | | See: http://git.netfilter.org/libmnl/commit/?id=37c876b55a2c00424ccda5a300ab5fdec1d88b22 | ||||
* | keygen-html: add zip file example | Jason A. Donenfeld | 2018-05-02 | 1 | -3/+127 |
| | | | | A little bit more JavaScript for easy copy&pasting. | ||||
* | qemu: retry on 404 in wget for kernel.org race | Jason A. Donenfeld | 2018-04-23 | 1 | -3/+1 |
| | |||||
* | version: bump snapshot0.0.20180420 | Jason A. Donenfeld | 2018-04-20 | 2 | -2/+2 |
| | |||||
* | poly1305: do not place constants in different sections | Jason A. Donenfeld | 2018-04-18 | 1 | -14/+1 |
| | | | | | | | We're referencing these constants as one contiguous blob, so if there's any merging that goes on with other constants elsewhere (such as the kernel's current poly1305 implementation that we hope to replace), then these will be reordered and have the wrong values. | ||||
* | compat: remove unused dev_recursion_level backport | Jason A. Donenfeld | 2018-04-16 | 1 | -7/+0 |
| | |||||
* | blake2s: remove unused helper | Jason A. Donenfeld | 2018-04-16 | 1 | -5/+0 |
| | |||||
* | send: simplify skb_padding with nice macro | Jason A. Donenfeld | 2018-04-16 | 1 | -4/+3 |
| | |||||
* | send: account for route-based MTU | Jason A. Donenfeld | 2018-04-15 | 5 | -3/+26 |
| | | | | | | | | | | It might be that a particular route has a different MTU than the interface, via `ip route add ... dev wg0 mtu 1281`, for example. In this case, it's important that we don't accidently pad beyond the end of the MTU. We accomplish that in this patch by carrying forward the MTU from the dst if it exists. We also add a unit test for this issue. Reported-by: Roman Mamedov <rm.wg@romanrm.net> | ||||
* | wg-quick: account for specified fwmark in auto routing mode | Jason A. Donenfeld | 2018-04-15 | 1 | -19/+23 |
| | | | | | | | | | | | If we're doing automatic routing with default routes, but the config has also specified an explicit fwmark, then use that explicit fwmark, even if it's conflicting, since the administrator has explicitly opted into using it. Also, when shutting down the interface, we only now remove the fancy rules if we're in automatic routing mode with default routes. Suggested-by: Luis Ressel <aranea@aixah.de> Reported-by: Saeid Akbari <saeidscorp@yahoo.com> | ||||
* | qemu: bump default version | Jason A. Donenfeld | 2018-04-15 | 1 | -1/+1 |
| | |||||
* | version: bump snapshot0.0.20180413 | Jason A. Donenfeld | 2018-04-13 | 2 | -2/+2 |
| | |||||
* | chacha20poly1305: put magic constant behind macro | Jason A. Donenfeld | 2018-04-05 | 2 | -3/+5 |
| | |||||
* | chacha20poly1305: add self tests from wycheproof | Jason A. Donenfeld | 2018-04-05 | 1 | -3/+1026 |
| | |||||
* | curve25519: add self tests from wycheproof | Jason A. Donenfeld | 2018-04-04 | 1 | -0/+504 |
| | |||||
* | wg-quick.8: fix typo | Jason A. Donenfeld | 2018-04-04 | 1 | -1/+1 |
| | | | | Reported-by: Mike Pechkin <mike.pechkin@gmail.com> | ||||
* | curve25519: precomp const correctness | Jason A. Donenfeld | 2018-03-09 | 1 | -24/+22 |
| | |||||
* | curve25519: memzero in batches | Jason A. Donenfeld | 2018-03-09 | 1 | -140/+124 |
| | |||||
* | curve25519: use cmov instead of xor for cswap | Jason A. Donenfeld | 2018-03-09 | 1 | -12/+39 |
| | | | | Also add cselect optimization. | ||||
* | curve25519: use precomp implementation instead of sandy2x | Jason A. Donenfeld | 2018-03-09 | 4 | -3438/+2071 |
| | | | | It's faster and doesn't use the FPU. | ||||
* | compat: support OpenSUSE 15 | Jason A. Donenfeld | 2018-03-09 | 1 | -3/+6 |
| | |||||
* | compat: silence warning on frankenkernels | Jason A. Donenfeld | 2018-03-09 | 1 | -0/+3 |
| | | | | Some Android 3.18 devices backport this macro. | ||||
* | compat: stable kernels are now receiving b87b619 | Jason A. Donenfeld | 2018-03-07 | 1 | -1/+1 |
| | |||||
* | wg-quick: hide errors on save | Jason A. Donenfeld | 2018-03-04 | 1 | -1/+1 |
| | |||||
* | version: bump snapshot0.0.20180304 | Jason A. Donenfeld | 2018-03-04 | 2 | -2/+2 |
| | |||||
* | contrib: add extract-handshakes kprobe example | Jason A. Donenfeld | 2018-03-04 | 6 | -0/+176 |
| | |||||
* | wg-quick: if resolvconf/run/iface exists, use it | Jason A. Donenfeld | 2018-03-04 | 1 | -1/+1 |
| | | | | | Some older broken resolvconfs don't support resolvconf -l, but do have a file in a standard location, so use it. | ||||
* | wg-quick: if resolvconf/interface-order exists, use it | Jason A. Donenfeld | 2018-03-04 | 1 | -3/+12 |
| | | | | | | | Some older broken resolvconf implementations ignore -m, but do have an interface-order list. It's better to use this list dynamically, in case it changes, or in case it's not used by the OS's resolvconf implementation, such as in the case of systemd or openresolv. | ||||
* | noise: align static_identity keys | Jason A. Donenfeld | 2018-03-02 | 1 | -1/+1 |
| | |||||
* | compat: use correct -include path | Jason A. Donenfeld | 2018-03-02 | 1 | -5/+6 |
| | |||||
* | noise: fix function prototype | Jason A. Donenfeld | 2018-03-02 | 1 | -1/+1 |
| | |||||
* | global: in gnu code, use un-underscored asm | Jason A. Donenfeld | 2018-03-02 | 3 | -3/+3 |
| | |||||
* | messages: MESSAGE_TOTAL is unused | Jason A. Donenfeld | 2018-03-02 | 1 | -2/+1 |
| | |||||
* | crypto: read only after init | Jason A. Donenfeld | 2018-03-02 | 4 | -10/+11 |
| | |||||
* | Kconfig: require DST_CACHE explicitly | Jason A. Donenfeld | 2018-03-02 | 1 | -0/+1 |
| | |||||
* | Revert "contrib: keygen-html: rewrite in pure javascript" | Jason A. Donenfeld | 2018-03-02 | 5 | -187/+129 |
| | | | | | | | This reverts commit e5203543a674453ce1e0cbbcb234d3308762fe65. As swanky as it is to have a really short file, it's hard to justify and makes me nervous. | ||||
* | contrib: keygen-html: rewrite in pure javascript | Jason A. Donenfeld | 2018-03-02 | 5 | -129/+187 |
| | | | | | Emscripten is too cumbersome. This code here is much slower, but it's shorter and simpler. | ||||
* | compat: workaround netlink refcount bug | Jason A. Donenfeld | 2018-03-02 | 1 | -1/+1 |
| | | | | | | | For now it looks like only 4.16 has this, but we'll keep track in case others add it too. Upstream-fix: b87b6194be63 ("netlink: put module reference if dump start fails") | ||||
* | contrib: embedded-wg-library: add key generation functions | Jason A. Donenfeld | 2018-03-02 | 3 | -2/+205 |
| | |||||
* | allowedips: fix comment style | Jason A. Donenfeld | 2018-02-21 | 1 | -1/+2 |
| | |||||
* | contrib: embedded-wg-library: add ability to add and del interfaces | Jason A. Donenfeld | 2018-02-21 | 3 | -3/+109 |
| | |||||
* | queueing: skb_reset: mark as xnet | Jason A. Donenfeld | 2018-02-20 | 1 | -1/+1 |
| | | | | | | | | This was avoided for a long time, because I wanted the packet to be charged to the original socket for as long as possible. However, this broke net_cls, which looks at skb->sk for additional late-stage routing decisions. So we had no choice but to ensure that skb->sk is NULL by the time of xmit, and this means calling the skb destructor. | ||||
* | version: bump snapshot0.0.20180218 | Jason A. Donenfeld | 2018-02-18 | 2 | -2/+2 |
| | |||||
* | tools: fixup errno handling | Jason A. Donenfeld | 2018-02-17 | 2 | -8/+8 |
| | |||||
* | tools: FreeBSD doesn't have EAI_NODATA | Jason A. Donenfeld | 2018-02-17 | 1 | -2/+15 |
| | |||||
* | tools: do not collide types with libc clashes | Jason A. Donenfeld | 2018-02-17 | 1 | -4/+10 |
| | |||||
* | contrib: add embeddable wireguard library | Jason A. Donenfeld | 2018-02-17 | 6 | -0/+1671 |
| | |||||
* | wg(8): clarify phrasing | Jason A. Donenfeld | 2018-02-17 | 1 | -3/+3 |
| |