aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Kconfig (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-10-20Action TODOMatt Dunwoodie1-2/+1
2019-10-12Message for laterMatt Dunwoodie1-0/+1
2019-10-05Update ipc.c to new if_wg.h interfaceMatt Dunwoodie1-34/+42
2019-08-29Return null key when maskedMatt Dunwoodie1-6/+15
2019-08-29Add support for rdomainMatt Dunwoodie1-1/+12
I'm not sure if fwmark is the correct way to do it, but for the time being it works.
2019-08-29Add name to anonymous unionMatt Dunwoodie1-1/+1
This is required for the Cython library I'm working on. I don't see this causing any issues.
2019-08-11Add support for masked/hidden keysMatt Dunwoodie1-3/+3
2019-08-10Create runtime dir for both interface typesMatt Dunwoodie1-1/+1
2019-07-21Rudimentary support for wg-quickMatt Dunwoodie1-12/+22
This isn't as foolproof as I would like, however it seems to work with both wireguard-openbsd and wireguard-go.
2019-07-21Actually call SIOCSWGPEERAIP in wg(8)Matt Dunwoodie1-2/+5
The set AIP ioctl was actually not called in openbsd_set_device. Also, specify ipv4 and ipv6 when copying the addresses.
2019-05-21Add support for OpenBSD keepaliveMatt Dunwoodie1-2/+11
2019-05-19Update to new wg_cidr allowedip structureMatt Dunwoodie1-17/+13
2019-05-19Add retrieval of private key from deviceMatt Dunwoodie1-0/+5
Before mdlayher notified me that wg(8) actually can view the device private key (with `WG_HIDE_KEYS=never wg`), I did not have a need for it. It was straight forward to add in kernel. This functionality will also be implemented in wgctrl-go.
2019-04-30Add support for new ioctlsMatt Dunwoodie1-15/+9
2019-04-29openbsd: add support for openbsd kernel moduleMatt Dunwoodie1-0/+253
While this isn't complete, it is a good representation of what needs to be done. The biggest problem to fix is that the kernel module has no concept of 'replacing' peers or allowedips.
2019-04-23wg-quick: make darwin and freebsd path search strict like linuxJason A. Donenfeld2-2/+4
2019-04-23wg-quick: freebsd: workaround SIOCGIFSTATUS race in FreeBSD kernelJason A. Donenfeld1-9/+22
2019-04-14compat: udp_tunnel: force cast sk_data_readyJason A. Donenfeld1-1/+3
Reference: https://lists.zx2c4.com/pipermail/wireguard/2019-April/004081.html
2019-04-06version: bump snapshot0.0.20190406Jason A. Donenfeld2-2/+2
2019-04-06allowedips: initialize list head when removing intermediate nodesJason A. Donenfeld2-1/+5
Otherwise if this list item is later reused, we'll crash on list poison or worse. Also, add a version of Mimka's reproducer to netns.sh to catch these types of bugs in the future. Reported-by: Mimka <mikma.wg@lists.m7n.se>
2019-03-29compat: backport skb_mark_not_on_listJason A. Donenfeld1-0/+7
2019-03-27blake2s: remove outlen parameter from finalJason A. Donenfeld4-12/+11
2019-03-27blake2s: simplifySamuel Neves2-40/+12
Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
2019-03-25qemu: set framewarn 1280 for 64bit and 1024 for 32bitJason A. Donenfeld14-4/+14
2019-03-25device: use skb accessor functions where possibleJason A. Donenfeld1-2/+2
Suggested-by: David Miller <davem@davemloft.net>
2019-03-25allowedips: do not use __always_inlineJason A. Donenfeld1-9/+9
DaveM doth forbid. Suggested-by: David Miller <davem@davemloft.net>
2019-03-25peerlookup: rename from hashtablesJason A. Donenfeld7-9/+9
2019-03-23tools: avoid unneccessary next_peer assignments in sort_peers()Luis Ressel1-2/+1
Signed-off-by: Luis Ressel <aranea@aixah.de>
2019-03-23wg-quick: add 'strip' subcommandLuis Ressel5-5/+50
`wg-quick strip` prints the config file to stdout after stripping it of all wg-quick-specific options. This enables tricks such as `wg addconf $DEV <(wg-quick strip $DEV)`. Signed-off-by: Luis Ressel <aranea@aixah.de>
2019-03-23tools: warn if an AllowedIP has a nonzero host partLuis Ressel1-0/+34
Signed-off-by: Luis Ressel <aranea@aixah.de>
2019-03-18wg-quick: freebsd: export TMPDIR when restoring and don't make emptyJason A. Donenfeld1-1/+2
Otherwise mktemp doesn't see it, and if it's empty we wind up in /.
2019-03-17global: the _bh variety of rcu helpers have been unifiedJason A. Donenfeld7-12/+57
2019-03-14compat: nf_nat_core.h was removed upstreamBruno Wolff III1-0/+2
In d2c5c103b133 ("netfilter: nat: remove nf_nat_l3proto.h and nf_nat_core.h"). Signed-off-by: Bruno Wolff III <bruno@wolff.to>
2019-02-28tools: add support for HaikuAlexander von Gluck IV1-0/+3
Signed-off-by: Alexander von Gluck IV <kallisti5@unixzen.com>
2019-02-28tools: genkey: account for short reads of /dev/urandomJason A. Donenfeld2-18/+35
Apparently Haiku has a misbehaving /dev/urandom. While we're at it, simplify the function signature to completely succeed or completely fail and make sure the caller checks the result. Reported-by: Alexander von Gluck IV <kallisti5@unixzen.com> Nitpicked-by: Aaron Jones <aaronmdjones@gmail.com>
2019-02-28wg-quick: freebsd: rebreak interface loopback, while fixing localhostJason A. Donenfeld1-1/+1
The commit 7c833642 ("wg-quick: freebsd: allow loopback to work") was supposed to make things better, but actually it just started sending legitimate localhost traffic over the WireGuard interface, which is really quite bad. This reverts commit 7c833642dfa342218602ab18e7091e86408d2982. Reported-by: Matt Smith <matt.xtaz@gmail.com>
2019-02-27version: bump snapshot0.0.20190227Jason A. Donenfeld2-2/+2
2019-02-27queueing: net-next has changed signature of skb_probe_transport_headerJason A. Donenfeld2-1/+7
2019-02-26allowedips: maintain per-peer list of allowedipsJason A. Donenfeld6-160/+129
This makes `wg show` and `wg showconf` and the like significantly faster, since we don't have to iterate through every node of the trie for every single peer. It also makes netlink cursor resumption much less problematic, since we're just iterating through a list, rather than having to save a traversal stack.
2019-02-25peer: only synchronize_rcu_bh and traverse trie once when removing all peersJason A. Donenfeld2-20/+42
2019-02-25netlink: don't remove allowed ips for new peersJason A. Donenfeld1-0/+3
This causes needless traversal of the trie.
2019-02-17Makefile: make the depmod path configurableLuis Ressel1-1/+2
Signed-off-by: Luis Ressel <aranea@aixah.de>
2019-02-17Makefile: don't duplicate code in install and modules-installLuis Ressel1-5/+5
Signed-off-by: Luis Ressel <aranea@aixah.de>
2019-02-17compat: backport ALIGN_DOWNJason A. Donenfeld1-0/+7
2019-02-17compat: ipv6_stub is sometimes nullJason A. Donenfeld1-1/+1
On ancient kernels, ipv6_stub is sometimes null in cases where IPv6 has been disabled with a command line flag or other failures. Reported-by: Anatoli <me@anatoli.ws>
2019-02-08tools: c_acc doesn't need to be initializedJason A. Donenfeld1-1/+1
2019-02-05tools: fight compiler slightly harderJason A. Donenfeld2-2/+2
2019-02-04chacha20: name enumsJason A. Donenfeld1-2/+2
2019-02-03noise: store clamped key instead of raw keyJason A. Donenfeld9-18/+18
2019-02-03chacha20poly1305: permit unaligned strides on certain platformsJason A. Donenfeld1-18/+14
The map allocations required to fix this are mostly slower than unaligned paths. Reported-by: Louis Sautier <sbraz@gentoo.org>