Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | netlink: use __kernel_timespec for handshake time | Jason A. Donenfeld | 2019-01-23 | 1 | -2/+2 |
| | |||||
* | global: update copyright | Jason A. Donenfeld | 2019-01-07 | 1 | -1/+1 |
| | |||||
* | tools: don't fail if a netlink interface dump is inconsistent | Jason A. Donenfeld | 2018-10-13 | 1 | -2/+9 |
| | | | | | | | | | | Netlink returns NLM_F_DUMP_INTR if the set of all tunnels changed during the dump. That's unfortunate, but is pretty common on busy systems that are adding and removing tunnels all the time. Rather than retrying, potentially indefinitely, we just work with the partial results. Reported-by: Robert Gerus <ar@is-a.cat> | ||||
* | netlink: do not stuff index into nla type | Jason A. Donenfeld | 2018-10-08 | 1 | -5/+4 |
| | | | | | | | It's not used for anything, and LKML doesn't like the type being used as an index value. Suggested-by: Eugene Syromiatnikov <esyr@redhat.com> | ||||
* | global: put SPDX identifier on its own line | Jason A. Donenfeld | 2018-09-20 | 1 | -2/+2 |
| | | | | | The kernel has very specific rules correlating file type with comment type, and also SPDX identifiers can't be merged with other comments. | ||||
* | global: prefer sizeof(*pointer) when possible | Jason A. Donenfeld | 2018-09-04 | 1 | -6/+6 |
| | | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | tools: ipc: do not warn on unrecognized netlink attributes | Jason A. Donenfeld | 2018-09-02 | 1 | -17/+0 |
| | | | | It makes extending things more difficult. | ||||
* | tools: fix OpenBSD build | Filippo Valsorda | 2018-05-22 | 1 | -1/+1 |
| | | | | | License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com> | ||||
* | tools: fix errno propagation and messages | Jason A. Donenfeld | 2018-05-18 | 1 | -2/+1 |
| | |||||
* | tools: fixup errno handling | Jason A. Donenfeld | 2018-02-17 | 1 | -7/+8 |
| | |||||
* | tools: normalize strncpy/snprintf usage | Jason A. Donenfeld | 2018-02-14 | 1 | -3/+5 |
| | |||||
* | global: year bump | Jason A. Donenfeld | 2018-01-03 | 1 | -1/+1 |
| | |||||
* | global: add SPDX tags to all files | Greg Kroah-Hartman | 2017-12-09 | 1 | -1/+4 |
| | | | | | | | | | | | | | It's good to have SPDX identifiers in all files as the Linux kernel developers are working to add these identifiers to all files. Update all files with the correct SPDX license identifier based on the license text of the project or based on the license in the file itself. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Modified-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | global: switch from timeval to timespec | Jason A. Donenfeld | 2017-11-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | This gets us nanoseconds instead of microseconds, which is better, and we can do this pretty much without freaking out existing userspace, which doesn't actually make use of the nano/micro seconds field: zx2c4@thinkpad ~ $ cat a.c void main() { puts(sizeof(struct timeval) == sizeof(struct timespec) ? "success" : "failure"); } zx2c4@thinkpad ~ $ gcc a.c -m64 && ./a.out success zx2c4@thinkpad ~ $ gcc a.c -m32 && ./a.out success This doesn't solve y2038 problem, but timespec64 isn't yet a thing in userspace. | ||||
* | tools: tighten up strtoul parsing | Jason A. Donenfeld | 2017-11-17 | 1 | -8/+8 |
| | | | | Reported-by: Cedric Buxin <cedric.buxin@izri.org> | ||||
* | tools: allow for NULL keys everywhere | Jason A. Donenfeld | 2017-11-11 | 1 | -7/+18 |
| | |||||
* | global: style nits | Jason A. Donenfeld | 2017-10-31 | 1 | -0/+7 |
| | |||||
* | global: infuriating kernel iterator style | Jason A. Donenfeld | 2017-10-31 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | One types: for (i = 0 ... So one should also type: for_each_obj (obj ... But the upstream kernel style guidelines are insane, and so we must instead do: for_each_obj(obj ... Ugly, but one must choose his battles wisely. | ||||
* | tools: account for padding being in zero attribute | Jason A. Donenfeld | 2017-10-17 | 1 | -0/+6 |
| | |||||
* | tools: newline after warning | Jason A. Donenfeld | 2017-10-17 | 1 | -1/+1 |
| | |||||
* | tools: style | Jason A. Donenfeld | 2017-10-17 | 1 | -1/+1 |
| | |||||
* | tools: store tail pointer to make coalescing peers fast | Jason A. Donenfeld | 2017-10-10 | 1 | -72/+68 |
| | |||||
* | tools: warn once on unrecognized items | Jason A. Donenfeld | 2017-10-09 | 1 | -0/+21 |
| | | | | | | | | DaveM suggests we do in fact do this. Others on the same thread weren't happy about the length of the proposed message, so we also give a bit of a less dramatic warning. This reverts commit a2cc976a3b572cf308cc2d97c080eacac60416fe. | ||||
* | tools: try again if dump is interrupted | Jason A. Donenfeld | 2017-10-08 | 1 | -1/+4 |
| | |||||
* | tools: compile on non-Linux | Jason A. Donenfeld | 2017-10-02 | 1 | -16/+22 |
| | |||||
* | tools: simmer down silly compilers | Jason A. Donenfeld | 2017-10-02 | 1 | -1/+1 |
| | |||||
* | tools: do not warn on unrecognized items | Jason A. Donenfeld | 2017-10-02 | 1 | -25/+0 |
| | | | | Upstream advice is to simply be silent. | ||||
* | netlink: switch from ioctl to netlink for configuration | Jason A. Donenfeld | 2017-10-02 | 1 | -154/+447 |
| | |||||
* | tools: uapi: only make sure socket file is socket | Jason A. Donenfeld | 2017-09-26 | 1 | -4/+9 |
| | |||||
* | tools: use key_is_zero for comparing to zeros | Jason A. Donenfeld | 2017-09-24 | 1 | -3/+2 |
| | | | | | | | Maybe an attacker on the system could use the infoleak in /proc to gauge how long a wg(8) process takes to complete and determine the number of leading zeros. This is somewhat ridiculous, but it's possible somebody somewhere might at somepoint care in the future, so alright. | ||||
* | tools: stricter userspace ipc parsing | Jason A. Donenfeld | 2017-08-02 | 1 | -3/+3 |
| | |||||
* | tools: remove double include in ipc | Jason A. Donenfeld | 2017-06-29 | 1 | -1/+0 |
| | |||||
* | tools: support text-based ipc | Jason A. Donenfeld | 2017-05-17 | 1 | -106/+260 |
| | |||||
* | tools: check for proto error on set too | Jason A. Donenfeld | 2017-05-17 | 1 | -3/+4 |
| | |||||
* | tools: side channel resistant base64 | Jason A. Donenfeld | 2017-04-19 | 1 | -1/+1 |
| | |||||
* | uapi: add version magic | Jason A. Donenfeld | 2017-03-24 | 1 | -7/+26 |
| | |||||
* | Update copyright | Jason A. Donenfeld | 2017-01-10 | 1 | -1/+1 |
| | |||||
* | tools: ipc: read from socket incrementally | Jason A. Donenfeld | 2017-01-10 | 1 | -42/+48 |
| | |||||
* | tools: error on short ret reads | Jason A. Donenfeld | 2017-01-10 | 1 | -0/+4 |
| | |||||
* | headers: cleanup notices | Jason A. Donenfeld | 2016-11-21 | 1 | -1/+1 |
| | |||||
* | tools: use correct headers in ipc | Jason A. Donenfeld | 2016-08-02 | 1 | -2/+2 |
| | |||||
* | tools: use stream instead of seqpacketexperimental-0.0.20160722 | Jason A. Donenfeld | 2016-07-22 | 1 | -18/+31 |
| | | | | To support OS X and Windows, we have to. Ugh. | ||||
* | tools: Use seqpacket instead of dgram | Jason A. Donenfeld | 2016-07-22 | 1 | -26/+6 |
| | |||||
* | tools: propagate set errno | Jason A. Donenfeld | 2016-07-21 | 1 | -0/+1 |
| | |||||
* | tools: abstract sockets are dangerous | Jason A. Donenfeld | 2016-07-21 | 1 | -28/+1 |
| | | | | | They have no permissions, so we're probably better off just creating a socket file with the umask set, as we do in BSD. | ||||
* | tools: rename kernel to ipc | Jason A. Donenfeld | 2016-07-21 | 1 | -0/+516 |