aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/wg-quick/android.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-10-16wg-quick: android: check for null in binder cleanup functionsJason A. Donenfeld1-3/+6
2019-10-12version: bump snapshot0.0.20191012Jason A. Donenfeld2-2/+2
2019-10-12wg-quick: android: use Binder for setting DNS on Android 10Nicolas Douma1-7/+429
Signed-off-by: Nicolas Douma <nicolas@serveur.io>
2019-10-11noise: recompare stamps after taking write lockJason A. Donenfeld1-2/+6
2019-10-11netlink: allow preventing creation of new peers when updatingJason A. Donenfeld2-9/+12
This enables race-free updates for wg-dynamic and similar tools. Suggested-by: Thomas Gschwantner <tharre3@gmail.com>
2019-10-11netns: add test for failing 5.3 FIB changesJason A. Donenfeld2-1/+24
Reference: https://lore.kernel.org/netdev/20190924073615.31704-1-Jason@zx2c4.com/
2019-10-11qemu: bump default versionJason A. Donenfeld1-1/+1
2019-09-13version: bump snapshot0.0.20190913Jason A. Donenfeld2-2/+2
2019-09-13compat: support rhel/centos 7.7Jason A. Donenfeld1-1/+1
2019-09-13Kbuild: squelch warnings for stack limit on broken kernel configsJason A. Donenfeld1-0/+1
1280 is considered the absolute minimum for 64bit archs.
2019-09-13compat: don't rewrite siphash when it's from compatJason A. Donenfeld1-0/+2
2019-09-11compat: support newer PaXJason A. Donenfeld1-0/+1
Reported-by: PaX Team <pageexec@freemail.hu>
2019-09-05version: bump snapshot0.0.20190905Jason A. Donenfeld2-2/+2
2019-09-05compat: work around ubuntu breakageJason A. Donenfeld1-0/+9
They forgot to backport hsiphash.
2019-08-31tools: windows: enforce named pipe ownership and use protected prefixJason A. Donenfeld2-22/+40
2019-08-28Makefile: allow specifying kernel releaseMikk Mar1-2/+3
This makes depmod work when building/installing the module for a kernel other than the currently running one. Signed-off-by: Mikk Mar <mikkmar@airmail.cc>
2019-08-27wg-quick: linux: don't fail down when using systemd-resolvedRonan Pigott1-1/+1
systemd-resolved has a compatibility interface for use with resolvconf scripts when resolvectl is called from a symlink from resolvconf. However, when tearing down the interface, cmd_down calls del_if and then unset_dns. In the case of systemd-resolved, deleting the interface also removes the systemd-resolved entry and causes resolvconf -d to fail when resolvconf really is a symlink to resolvectl. This causes `wg-quick down` and 'wg-quick@.service' to exit with failure. Instead we use the resolvconf '-f' flag to ignore non-existent interfaces, supported by both openresolv and sd-resolved resolvconf. Signed-off-by: Ronan Pigott <rpigott@berkeley.edu> [zx2c4: moved -f argument to end to remain compatible with Debian's resolvconf]
2019-08-25compat: account for android-4.9 backport of addr_gen_modeNathan Chancellor2-4/+4
Android kernels backported d35a00b8e33dab7385f724e713ae71c8be0a49f4, so now we need to do feature detection. Link: https://android-review.googlesource.com/c/kernel/common/+/1103831 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
2019-08-07wg-quick: openbsd: fix alternate routing table syntaxAnkur Kothari1-1/+1
route(8) has always used the `-T` option to specify the routing table; there is no `rdomain` option. Signed-off-by: Ankur Kothari <ankur@lipidity.com>
2019-08-07Kbuild: account for upstream configuration maze changesJason A. Donenfeld1-0/+2
2019-08-05netlink: skip peers with invalid keysJason A. Donenfeld2-6/+15
2019-08-03compat: do not run bc on clean targetJason A. Donenfeld1-0/+2
Certain targets don't define CONFIG_*, which means this bc command was previously failing.
2019-07-19compat: support running in OpenVZ environmentsJason A. Donenfeld1-0/+8
Overriding LLTX like this is pretty ugly, but at least it means we don't have to let OpenVZ infect the real source tree. Requested-by: Benedikt Braunger <b.braunger@syseleven.de>
2019-07-11noise: immediately rekey all peers after changing device private keyJason A. Donenfeld6-7/+47
Reported-by: Derrick Pallas <derrick@pallas.us>
2019-07-08netlink: enforce that unused bits of flags are zeroJason A. Donenfeld2-5/+16
Reported-by: Toke Høiland-Jørgensen <toke@toke.dk>
2019-07-08wg-quick: android: refactor and add incoming allow rulesJason A. Donenfeld1-65/+73
Suggested-by: Yağmur Oymak <yagmur.oymak@gmail.com>
2019-07-04compat: define conversion constants for ancient kernelsJason A. Donenfeld2-1/+5
2019-07-02version: bump snapshot0.0.20190702Jason A. Donenfeld2-2/+2
2019-07-02receive: queue dead packets to napi queue instead of empty rx_queueJason A. Donenfeld2-5/+3
2019-06-28peer: use LIST_HEAD macroJason A. Donenfeld1-1/+1
Suggested-by: Sultan Alsawaf <sultan@kerneltoast.com>
2019-06-28netlink: cast struct over cb->args for type safetyJason A. Donenfeld1-29/+34
This eliminates the headache of managing cb->args[??]. Suggested-by: Johannes Berg <johannes@sipsolutions.net>
2019-06-28compat: support RHEL8's skb_mark_not_on_list backportJason A. Donenfeld1-1/+3
2019-06-25compat: rhel backported list modificationsJason A. Donenfeld1-1/+1
2019-06-25global: switch to coarse ktimeJason A. Donenfeld11-36/+43
Coarse ktime is broken until [1] in 5.2 and kernels without the backport, so we use fallback code there. The fallback code has also been improved significantly. It now only uses slower clocks on kernels < 3.17, at the expense of some accuracy we're not overly concerned about. [1] https://lore.kernel.org/lkml/tip-e3ff9c3678b4d80e22d2557b68726174578eaf52@git.kernel.org/ Suggested-by: Arnd Bergmann <arnd@arndb.de>
2019-06-24compat: unify custom function prefix/suffixJason A. Donenfeld3-48/+48
2019-06-24compat: some kernels weirdly backport prandom_u32_maxJason A. Donenfeld1-2/+3
2019-06-24wg-quick: darwin: support being called from launchdJason A. Donenfeld3-1/+53
This causes wg-quick up to wait for the monitor to exit before it exits, so that launchd can correctly wait on it. Reported-by: Cameron Palmer <cameron@promon.no>
2019-06-18qemu: show signal when failingJason A. Donenfeld1-3/+14
2019-06-03blake2s: spacingJason A. Donenfeld2-123/+123
2019-06-02curve25519: not all linkers support bmi2 and adxJason A. Donenfeld3-6/+58
2019-06-01version: bump snapshot0.0.20190601Jason A. Donenfeld2-2/+2
2019-05-31compat: don't call xgetbv on cpus with no XSAVEJason A. Donenfeld1-1/+1
2019-05-31blake2s: add ssse3 to nobsJason A. Donenfeld1-1/+2
2019-05-31blake2s: do not use xgetbv for ssse3 detectionJason A. Donenfeld1-3/+1
2019-05-31tools: pass WG_ENDPOINT_RESOLUTION_RETRIES=infinity to systemd unitJason A. Donenfeld1-0/+1
2019-05-31version: bump snapshot0.0.20190531Jason A. Donenfeld2-2/+2
2019-05-31tools: add wincompat layer to wg(8)Jason A. Donenfeld15-0/+321
2019-05-29tools: allow setting WG_ENDPOINT_RESOLUTION_RETRIESJason A. Donenfeld2-4/+25
2019-05-29zinc: update copyrightJason A. Donenfeld2-2/+2
2019-05-29blake2s: shorten ssse3 loopSamuel Neves1-857/+66
This (mostly) preserves the performance (as measured on Haswell and *lake) of last commit, but it drastically reduces code size. Signed-off-by: Samuel Neves <sneves@dei.uc.pt>