02c72f46bd
peer: remove dead code fastd_remote_matches_dynamic()
2014-08-18 21:27:59 +02:00
7879164915
Move fastd_config_t.peers to fastd_context_t.peer_configs
2014-08-09 06:16:14 +02:00
e0f99a4199
log: fix port of IPv6 addresses with hidden IP addresses
2014-08-09 06:14:53 +02:00
c800a400b0
Add MacOS X semaphore implementation
2014-08-01 21:55:13 -07:00
4f25bdd259
Encapsulate semaphore handling
2014-08-02 06:45:39 +02:00
96a291d11f
Add support for Mac OS X
2014-08-01 21:08:18 -07:00
e63fe3b8d0
Don't use exponential notation for integers
2014-08-02 03:38:31 +02:00
546ac79363
Introduce and use alloc helpers
...
These new helpers will terminate fastd on allocation failures and add some
additional convenience (allow strdup with NULL; typesafe new(type) macros).
2014-08-02 00:53:47 +02:00
b22364f4af
Fix CMake warning about doc target, only use `doxygen' target
...
Also, to avoid conflicts with the doc directory, the default output dir has been
changed to doxygen.
2014-08-01 22:32:07 +02:00
5f385b0ea0
Use srandom/random instead of rand_r
...
There's no need to keep our own seed.
2014-08-01 22:12:56 +02:00
ebcf28b9ab
config: fix basic config checks in TUN mode
2014-07-10 18:20:17 +02:00
ebe85fa478
Development version
2014-06-30 21:41:25 +02:00
d4cef341eb
fastd v14
2014-06-30 21:40:51 +02:00
17d7b74daf
Fix build with ENABLE_OPENSSL
2014-06-28 21:02:19 +02:00
54a3574537
Development version
2014-06-21 20:20:28 +02:00
d5d7dc0601
fastd v13
2014-06-21 20:16:34 +02:00
556ff2e7bb
Update man
2014-06-21 17:30:18 +02:00
7f1a29a516
peer_hashtable: fix address hashing on systems with holes in sockaddr definitions
2014-06-14 14:58:33 +02:00
10378374ec
Add missing sys/uio.h includes
2014-06-14 14:34:41 +02:00
c17bdd0818
verify: add missing sys/wait.h include
2014-06-14 14:29:37 +02:00
f70848f7d0
shell: add missing signal.h include
2014-06-14 14:28:43 +02:00
e30ecc7387
peer: remove always-true condition
2014-06-14 14:05:29 +02:00
223066fe24
Ensure that peers get their place in the handshake queue even when the async queue is full
...
When the first resolve return for a newly reset peer is lost, init_handshake()
would never be called, and the peer would never get handshakes again. This
probably won't ever happen in practice, but since it's easy to fix, better be
correct here.
2014-06-14 13:59:50 +02:00
781538295f
Limit the number of concurrent on-verify runs
2014-06-14 03:30:17 +02:00
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