Commit graph

863 commits

Author SHA1 Message Date
7915533147 Remove an unused variable 2014-06-12 23:44:21 +02:00
e1d32e2258 Fix an undefined shift 2014-06-12 23:44:07 +02:00
ed817eb906 Fix error message when ENABLE_LIBSODIUM is set and libsodium is not found 2014-06-11 16:43:00 +02:00
6b139d613a Clean up peer config loading
Instead of changing the peer list and peer group in the main conf during
(re-)loading, add a parser state which contains this information.
2014-06-10 20:46:52 +02:00
65a09a09d6 Allow async verify for handshake responses
This will lead to a bit strange handshake as a handshake response is answered
with another handshake response, but it won't lead to loops because of the
verification and handshake backoff intervals.
2014-06-08 17:40:57 +02:00
65fc11a49e Add ENABLE_LTO cmake option
Tested with GCC and clang; unlikely to work with other toolchains, so it's
disabled by default.
2014-06-08 16:13:17 +02:00
7665159490 Use gcc-provided ar, nm and ranlib if available to allow supporting LTO 2014-06-06 10:52:59 +02:00
2c32259d53 Simplify systemd notify socket handling 2014-06-05 02:43:24 +02:00
4518f1d2c7 Use libsodium by default 2014-06-04 11:29:51 +02:00
ecbe89613c Create threads in detached state 2014-06-03 17:04:10 +02:00
b506a1cb52 dump_state(): used unsigned instead of size_t to ensure correct variadic function call 2014-05-31 08:26:58 +02:00
d3e11f7992 Fix dump_state() 2014-05-31 08:13:26 +02:00
d5df5fb5b8 Fix poll race condition on *BSD 2014-05-31 08:09:36 +02:00
38dfd6da00 More signal handling fixes 2014-05-31 07:42:46 +02:00
1d81d51e1e Fix blocking signals... 2014-05-31 06:50:13 +02:00
6ed0948d5d Remove EINTR handling where signals are blocked anyways 2014-05-31 06:11:31 +02:00
73f7d5048c Unblock signals only during poll/epoll wait
If signals are normally blocked, we can avoid a lot of EINTR handling.
2014-05-31 06:05:29 +02:00
6c656c7394 Make log levels verbose and info more useful 2014-05-31 05:52:07 +02:00
ae429e372a Split main function
init() is still a bit long, but much better than before.
2014-05-31 05:15:52 +02:00
060c911563 Fix signal handling races 2014-05-31 04:14:51 +02:00
404785fe4a Ensure peer hashtable consistency on address resets 2014-05-29 18:54:03 +02:00
2fe678653b Document *everything* 2014-05-29 05:00:11 +02:00
efcafca969 Simplify configuration of cipher and MAC implementations
Let the cipher and MAC handlers just store the chosen implementations themselves
instead of relying on the global configuration.
2014-05-29 01:30:07 +02:00
d5da100c55 Still more documentation 2014-05-28 04:52:58 +02:00
d859894f7a Remove fastd_true() 2014-05-27 23:44:07 +02:00
b9f329256d More documentation 2014-05-27 23:30:48 +02:00
64c79271c7 A bit more fastd.h cleanup 2014-05-27 22:44:56 +02:00
adb7453fae Merge handle_forward into fastd_send_data 2014-05-27 22:33:41 +02:00
073357bec4 A bit more documentation 2014-05-27 22:21:35 +02:00
e03ec94896 Lots and lots of documentation 2014-05-27 05:48:51 +02:00
9b5e5f7883 poll: document the poll API 2014-05-27 05:00:11 +02:00
e90be1577d Move tuntap handling out of poll.c 2014-05-27 04:53:38 +02:00
a0e0e9898a More documentation 2014-05-27 04:44:01 +02:00
556284a10e peer: completely document peer.h and peer.c 2014-05-27 04:09:15 +02:00
348f3844ec peer: remove some dead code 2014-05-27 04:08:25 +02:00
6a249659bf Unify fastd_peer_group_t and fastd_peer_group_config_t into a single structure 2014-05-25 23:10:26 +02:00
c9da7ad1de peer.h: some documentation 2014-05-25 22:49:36 +02:00
5e72359e9a Completely document fastd.h 2014-05-25 04:59:35 +02:00
f34e51a1c3 Make a few struct fields that are not supposed to be changed defines instead 2014-05-25 00:20:05 +02:00
1b21919d54 fastd.h: more documentation 2014-05-25 00:04:20 +02:00
52017c3919 shell: ensure the signal mask is restored if shell_command_do_exec fails 2014-05-23 03:03:37 +02:00
d899fca425 Implement a different fix for the waitpid race condition not needing a reaper thread for each child 2014-05-23 02:59:46 +02:00
47a34ece26 Revert "Fix waitpid race condition"
This reverts commit 47d84679d6.
2014-05-23 02:37:02 +02:00
6b72d65ebb More documentation 2014-05-23 02:36:57 +02:00
789495e5a2 More documentation 2014-05-22 05:10:59 +02:00
f885449c5b Move fastd_peer_group{,_config} definitions to peer.h 2014-05-22 04:01:43 +02:00
6427c80b3e verify: use default tristate constants 2014-05-22 03:45:05 +02:00
fa486bd8ec Document types.h 2014-05-22 03:40:18 +02:00
1c8d382fac Move fastd_loglevel_t to log.h 2014-05-22 03:34:59 +02:00
0e3407d9aa Move fastd_peer_state_t to peer.h 2014-05-22 03:31:22 +02:00