summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/config.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tools: give "off" value for fwmarkJason A. Donenfeld2017-02-231-0/+6
|
* socket: enable setting of fwmarkJason A. Donenfeld2017-02-131-0/+28
|
* tools: remove key for any empty fileJason A. Donenfeld2017-02-071-11/+3
| | | | | Rather than just using /dev/null to mean key removal, match on any empty file, so that this interface is cross platform.
* tools: setconf should remove existing pskJason A. Donenfeld2017-02-071-0/+3
|
* Update copyrightJason A. Donenfeld2017-01-101-1/+1
|
* uapi: use sockaddr union instead of sockaddr_storageJason A. Donenfeld2017-01-101-3/+3
|
* uapi: use flag instead of C bitfield for portabilityJason A. Donenfeld2017-01-101-8/+9
|
* tools: do not use AI_ADDRCONFIGJason A. Donenfeld2016-12-231-2/+1
| | | | | | | | | | Some people run wg(8) using hard coded v6 addresses before interfaces have v6 addresses, causing getaddrinfo to fail. Since AI_ADDRCONFIG doesn't actualy change the sorting, but just the queries made, we don't really need AI_ADDRCONFIG anyway, since we're always only taking the first result. Reported-by: Benedikt Morbach <benedikt.morbach@googlemail.com>
* headers: cleanup noticesJason A. Donenfeld2016-11-211-1/+1
|
* tools: chill modern gcc outJason A. Donenfeld2016-11-051-22/+12
|
* tools: allow multiple AllowedIPs invocationsJason A. Donenfeld2016-08-301-1/+0
| | | | It turns out this is a somewhat natural thing to do in config files.
* persistent-keepalive: change range to [1,65535]Jason A. Donenfeld2016-08-081-2/+2
|
* c: specify static array size in function paramsJason A. Donenfeld2016-08-021-1/+1
| | | | | | | | | | | | | | | The C standard states: A declaration of a parameter as ``array of type'' shall be adjusted to ``qualified pointer to type'', where the type qualifiers (if any) are those specified within the [ and ] of the array type derivation. If the keyword static also appears within the [ and ] of the array type derivation, then for each call to the function, the value of the corresponding actual argument shall provide access to the first element of an array with at least as many elements as specified by the size expression. By changing void func(int array[4]) to void func(int array[static 4]), we automatically get the compiler checking argument sizes for us, which is quite nice.
* tools: rename kernel to ipcJason A. Donenfeld2016-07-211-1/+1
|
* persistent keepalive: add userspace supportJason A. Donenfeld2016-07-081-0/+30
|
* tools: improve error reporting and detectionJason A. Donenfeld2016-07-031-6/+2
|
* Initial commitJason A. Donenfeld2016-06-251-0/+518