summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
AgeCommit message (Collapse)Author
2014-08-25Move some utility funtions to a new headerMatthias Schiffer
2014-08-24Coding style: always add a space between a pointer's type and the *Matthias Schiffer
2014-08-24Use simple int64_t timestamps in ms instead of timespecsMatthias Schiffer
2014-08-24Merge peer config into peer structureMatthias Schiffer
With this refactoring, the structure fastd_peer_config_t is merged into fastd_peer_t, and fastd_remote_config_t into fastd_remote_t. This also means we now create peers directly when reading their configurations, which significantly simplifies the whole reload process, and prepares for some future optimizations like a key hash table. Note: This commit is too big, but I couldn't come up with a nice way to split it into smaller pieces...
2014-08-18Fix a few comment typosMatthias Schiffer
2014-08-18Rename WITH_VERIFY CMake option to WITH_DYNAMIC_PEERSMatthias Schiffer
2014-08-18Rename "temporary peers" to "dynamic peers"Matthias Schiffer
2014-08-09Move fastd_config_t.peers to fastd_context_t.peer_configsMatthias Schiffer
2014-08-02Encapsulate semaphore handlingMatthias Schiffer
2014-08-02Don't use exponential notation for integersMatthias Schiffer
2014-08-02Introduce and use alloc helpersMatthias Schiffer
These new helpers will terminate fastd on allocation failures and add some additional convenience (allow strdup with NULL; typesafe new(type) macros).
2014-08-01Use srandom/random instead of rand_rMatthias Schiffer
There's no need to keep our own seed.
2014-06-14Limit the number of concurrent on-verify runsMatthias Schiffer
2014-06-03Create threads in detached stateMatthias Schiffer
2014-05-31Fix poll race condition on *BSDMatthias Schiffer
2014-05-31More signal handling fixesMatthias Schiffer
2014-05-29Document *everything*Matthias Schiffer
2014-05-29Simplify configuration of cipher and MAC implementationsMatthias Schiffer
Let the cipher and MAC handlers just store the chosen implementations themselves instead of relying on the global configuration.
2014-05-28Still more documentationMatthias Schiffer
2014-05-27More documentationMatthias Schiffer
2014-05-27A bit more fastd.h cleanupMatthias Schiffer
2014-05-27Merge handle_forward into fastd_send_dataMatthias Schiffer
2014-05-27Move tuntap handling out of poll.cMatthias Schiffer
2014-05-25Unify fastd_peer_group_t and fastd_peer_group_config_t into a single structureMatthias Schiffer
2014-05-25Completely document fastd.hMatthias Schiffer
2014-05-25Make a few struct fields that are not supposed to be changed defines insteadMatthias Schiffer
2014-05-25fastd.h: more documentationMatthias Schiffer
2014-05-23Implement a different fix for the waitpid race condition not needing a ↵Matthias Schiffer
reaper thread for each child
2014-05-23More documentationMatthias Schiffer
2014-05-22More documentationMatthias Schiffer
2014-05-22Move fastd_peer_group{,_config} definitions to peer.hMatthias Schiffer
2014-05-22Remove PACKET_TYPE_LEN defineMatthias Schiffer
2014-05-01Remove support for log filesMatthias Schiffer
syslog/journald do a much better job at organizing logs, with the additional advantage of proper log rotation. If someone really wants to have a log file for fastd, they can just redirect stderr.
2014-04-30Use SOCK_NONBLOCK where availableMatthias Schiffer
2014-04-30Remove now unneeded FD_CLOEXEC flag configMatthias Schiffer
2014-04-30shell: close all fds > 2 after forkingMatthias Schiffer
socket/fcntl to set FD_CLOEXEC isn't thread-safe with async verify handlers, and SOCK_CLOEXEC isn't portable.
2014-04-29Fold fastd_open_pipe into fastd_async_init, simpify fastd_setfl and ↵Matthias Schiffer
fastd_setfd and move to fastd.h
2014-04-26Make on-verify support optionalMatthias Schiffer
2014-04-26Implement async verifyMatthias Schiffer
2014-04-26Revise shell command APIMatthias Schiffer
2014-04-25Move around some codeMatthias Schiffer
2014-04-24Add a sequential number to identify peersMatthias Schiffer
2014-04-24Always use size_t for countersMatthias Schiffer
2014-04-21Remove vector of new temporary peersMatthias Schiffer
The new poll code has made this second peer list obsolete.
2014-04-20Make ctx globalMatthias Schiffer
2014-04-20Make conf globalMatthias Schiffer
2014-04-20Linux: use epoll to handle great numbers of peers with less overheadMatthias Schiffer
2014-04-19Keep peers in a hash table to allow fast address lookupsMatthias Schiffer
2014-04-19Keep a vector of pollfds instead of regenerating it all the timeMatthias Schiffer
2014-04-19Store peers as vectors of pointers instead of linked listsMatthias Schiffer