summaryrefslogtreecommitdiffstatshomepage
path: root/src/config.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* config: satisfy sparseJason A. Donenfeld2017-03-191-1/+1
|
* socket: enable setting of fwmarkJason A. Donenfeld2017-02-131-0/+6
|
* config: useless newlineJason A. Donenfeld2017-01-121-2/+0
|
* Update copyrightJason A. Donenfeld2017-01-101-1/+1
|
* uapi: use sockaddr union instead of sockaddr_storageJason A. Donenfeld2017-01-101-8/+5
|
* uapi: use flag instead of C bitfield for portabilityJason A. Donenfeld2017-01-101-6/+6
|
* cookies: use xchacha20poly1305 instead of chacha20poly1305Jason A. Donenfeld2016-12-231-4/+14
| | | | | This allows us to precompute the blake2s calls and save cycles, since hchacha is fast.
* config: allow removing multiple peers at onceJason A. Donenfeld2016-12-231-1/+2
|
* config: cleanupsJason A. Donenfeld2016-12-161-33/+19
|
* peer: don't use sockaddr_storage to reduce memory usageJason A. Donenfeld2016-12-131-3/+10
|
* global: move to consistent use of uN instead of uintN_t for kernel codeJason A. Donenfeld2016-12-111-5/+5
|
* headers: cleanup noticesJason A. Donenfeld2016-11-211-1/+1
|
* socket: keep track of src address in sending packetsJason A. Donenfeld2016-11-151-4/+6
|
* socket: use dst_cache instead of handrolled cacheJason A. Donenfeld2016-11-041-1/+1
|
* timers: take reference like a lookup tableJason A. Donenfeld2016-11-031-8/+1
|
* Rework headers and includesJason A. Donenfeld2016-09-291-1/+0
|
* persistent-keepalive: change range to [1,65535]Jason A. Donenfeld2016-08-081-7/+4
|
* timers: upstream removed the slack conceptJason A. Donenfeld2016-07-231-5/+2
| | | | | No longer do we specify slack ourselves. Instead we need to add it directly in the main scheduling.
* timers: apply slack to hotpath timersJason A. Donenfeld2016-07-101-2/+5
| | | | | | | | | | | For timers in the hotpath, we don't want them to be rescheduled so aggressively, and since they don't need to be that precise, we can set a decent amount of slack. With the persistent keepalive timer, we have something of a special case. Since the timeout isn't fixed like the others, we don't want to make it more often than the kernel ordinarily would. So, instead, we make it a minimum.
* persistent keepalive: use unsigned long to avoid multiplication in hotpathJason A. Donenfeld2016-07-101-2/+2
|
* persistent keepalive: use authenticated keepalivesJason A. Donenfeld2016-07-101-1/+1
|
* persistent keepalive: start sending immediatelyexperimental-0.0.20160708.1Jason A. Donenfeld2016-07-081-1/+4
| | | | | | | | | | | | | | | Rather than only start sending the persistent keepalive packets when the device first sends data, this changes it to send the packets immediately on `ip link set up`. This makes things generally seem more stateless, since the administrator does not have to manually ping the endpoint. Of course, if you have a lot of peers and all of them have persistent keepalive enabled, this could cause a lot of unwanted immediate traffic. On the other hand, if all of those peers are at some point going to be sending packets, this would happen anyway. I suppose the moral of the story is that persistent keepalive is a feature really just for clients behind NAT, not for servers, and it should be used sparingly, which is why we've set it off by default in the first place.
* persistent keepalive: add kernel mechanismJason A. Donenfeld2016-07-081-0/+8
|
* Initial commitJason A. Donenfeld2016-06-251-0/+314