Commit graph

863 commits

Author SHA1 Message Date
a9ca525870 Remove some .gitignore entries
As these are specific to my build environment, these better go to
.git/info/exclude
2013-01-24 20:48:30 +01:00
a883af1652 Don't reset peer address on repeated resolves
This can lead to handshakes being ignored for an indefinite time.
2013-01-24 13:30:44 +01:00
d1b4837082 resolver: write whole hostname instead of a pointer to the resolver pipe
Shouldn't make a difference, but feels cleaner now, and silences a
clang-analyzer warning.
2013-01-24 13:21:48 +01:00
bb15efd020 Remove unneded calls to method functions in head and tail space calculation 2013-01-21 19:27:00 +01:00
a84ce92843 Fix indentation in handshake packet alloc 2013-01-21 19:09:09 +01:00
998300562e Add error message for OOM on buffer alloc 2013-01-21 19:07:56 +01:00
96c3ad683d Move version number to build system 2013-01-15 20:16:37 +01:00
1c75236ea2 Post-release version bump 2013-01-12 08:14:40 +01:00
c0e3083431 fastd 7 2013-01-10 17:20:57 +01:00
7fb8be25e3 Be less verbose about acquiring capabilities 2013-01-10 17:18:08 +01:00
c5721fd15c Improve checking of received handshake keys 2013-01-09 10:59:45 +01:00
2e11c07f23 Update to libuecc v3, check EC points for validity 2013-01-09 10:37:22 +01:00
80645ad347 Adjust copyright years 2013-01-05 21:34:19 +01:00
b296e814ae Add some debug output to uid/gid switching 2013-01-04 16:30:14 +01:00
9b21400404 Set supplementary groups 2013-01-04 16:25:31 +01:00
6aa3b1b12a Move const specifiers in handshake record names to the correct place 2013-01-04 16:02:53 +01:00
8d2ccbd7e5 And another unused include... 2012-12-26 20:39:50 +01:00
9cf7b53dd6 Remove unused include 2012-12-26 20:05:48 +01:00
ae28e7c8b1 Remove capability locking feature
This isn't our job, so there is no reason to support this.
2012-12-25 17:22:29 +01:00
78440eab81 Add user switching and capability support 2012-12-24 23:52:18 +01:00
eaac494273 Add WITH_CAPABILITIES CMake flag and check for libcap 2012-12-24 17:14:40 +01:00
cd8ab035e6 Add example systemd unit 2012-12-23 22:35:31 +01:00
4d8a5e4160 Set FD_CLOEXEC on all file descriptors, use non-blocking IO for sockets and TUN 2012-12-23 22:18:25 +01:00
3883abb85a Fix up all usage of deprecated libuecc API 2012-12-23 21:23:33 +01:00
3c19fd226e Use new pkg-config support of libuecc 2012-12-23 21:11:51 +01:00
577a9c0ed6 Install fastd binary to PREFIX/bin 2012-12-18 21:03:39 +01:00
224ea7b081 Convert type names to _t convention 2012-12-18 21:00:44 +01:00
766a0c145d Always convert v4-mapped IPv6 addresses to IPv4 addresses 2012-12-13 18:02:39 +01:00
505eb46494 Add helper function to simplify v4-mapped addresses 2012-12-13 17:51:00 +01:00
da4d1d1586 Reduce v4-mapped IPv6 addresses to IPv4 addresses
We need this for "any" binds to work correctly again.
2012-12-13 14:13:51 +01:00
b3b4397734 Only try to set MTU when it isn't correct
This allows fastd to run completely without root privileges when the TUN/TAP
device is pre-created
2012-12-08 23:52:28 +01:00
6b6099a630 Maximum interface name length is IFNAMSIZ-1, not IFNAMSIZ
Linux handles the string just fine without NULL termination, but that doesn't
make it correct...
2012-12-08 23:35:39 +01:00
268aefb54c Free socket before handshake if no address is set to avoid crash 2012-12-08 17:51:22 +01:00
9a155e4c51 Revert "Fix crash occuring under certain circumstances on resolve failure"
This reverts commit 6330d8abe0.
2012-12-08 17:46:34 +01:00
6330d8abe0 Fix crash occuring under certain circumstances on resolve failure
When a dynamic peer is in handshake state and a previous resolve has returned an
address, the peer must be reset on a resolve failure even when there is no
established session to avoid aborting on the next handshake.
2012-12-08 12:54:41 +01:00
64754a379d Increment version for new development 2012-12-08 12:54:10 +01:00
656175881b fastd 6 2012-11-10 18:06:14 +01:00
6ef24092b5 Keep track of configured peer count correctly on dynamic reloads 2012-11-10 15:20:39 +01:00
13c71785b5 Don't allow global config statements in peer groups 2012-11-10 14:55:41 +01:00
68b33305cc Give the default peer group a name 2012-11-10 14:47:28 +01:00
c0e60d4823 Truncate PID file 2012-11-08 08:47:19 +01:00
93ee0d9cb3 fastd 6-rc1 2012-11-06 20:46:38 +01:00
2bf6746fb7 Get rid of some annoyances with peer limits
Remove some debug messages, and don't resolve peers again and again we don't
want to connect to anyways.
2012-11-05 23:46:27 +01:00
f7244b9309 Don't inline send_handshake 2012-11-05 23:37:01 +01:00
65e60edefc Only delay initial handshakes for groups with constraints 2012-11-05 22:48:34 +01:00
773e84403f Add randomized initial handshake delays
This delay should barely be noticable, and it will make fastd connect to a
random choice of peers when a peer limit is set
2012-11-05 22:35:29 +01:00
8f60a96b84 Implement peer limit constraints 2012-11-05 22:24:42 +01:00
f631c10660 Implement peer groups 2012-11-05 18:26:55 +01:00
0c2f5da165 Fix some more bugs in fastd_peer_claim_address 2012-11-05 10:11:17 +01:00
51aa24d4a2 Reset dynamic peer if there is an established session and resolve fails
Fixes an assertion fail when address resolution fails during session refresh.
2012-11-04 17:06:35 +01:00