Commit graph

1164 commits

Author SHA1 Message Date
0e159b6d64 Terminate with the received signal 2015-12-21 14:43:35 +01:00
281fbb0057 log: clean up fastd_logf
Also, return early when no log destination would get the message anyways.
2015-11-25 03:40:12 +01:00
5b1d1a36df Unify periodic handshakes and peer maintenance 2015-11-18 03:44:26 +01:00
16e2b0213b Clean up peer task handling 2015-11-18 01:23:21 +01:00
5082b5a4d2 Use task queue for peer resets and keepalives
This makes it unnecessary to iterate over all peers for maintenance, and
desynchronizes different peers' keepalives.
2015-11-17 01:27:47 +01:00
cca293a6d4 Call ethernet address cleanup from generic maintenance task 2015-11-16 18:47:01 +01:00
bb761bafb8 Add lots of missing doxygen comments 2015-11-10 22:00:15 +01:00
c5aeb0dc42 Implement generic task queue to handle handshakes and maintenance 2015-11-10 20:55:47 +01:00
598a8acfc1 pqueue: remove some unnessasary assignments 2015-11-10 19:16:57 +01:00
312a9d0a21 Remove now unused doubly-linked list implementation 2015-11-10 18:27:14 +01:00
9bd967affa Use heap-based priority queue to schedule handshakes instead of a linked list 2015-11-10 18:26:37 +01:00
181deb9320 Add efficient priority queue implementation 2015-11-10 18:24:24 +01:00
999b87b803 Destroy interfaces on OpenBSD as well 2015-11-09 21:57:52 +01:00
57bf9f904a Implement interface cleanup on FreeBSD
Based-on-patch-by: Julian Kornberger <jk+github@digineo.de>
2015-11-09 21:32:16 +01:00
93945ca368 Add generic interface cleanup infrastructure
Some systems (like FreeBSD) don't delete TUN/TAP interfaces after closing,
add some infrastructure to do that.
2015-11-09 17:39:38 +01:00
2c71060d25 Check return value of sodium_init()
Fixes a warning with -Wunused-result.
2015-11-09 17:24:58 +01:00
c34723cfb9 Use a global ioctl socket
Based-on-patch-by: Julian Kornberger <jk+github@digineo.de>
2015-11-09 17:14:10 +01:00
f5a723399d Update libuecc dependency to v6 and remove use of deprecated API 2015-10-25 18:20:56 +01:00
11bca5a7af Improve include_directories to prevent conflicts between system and fastd headers
In in-tree builds, fastd's poll.h was conflicting with the system one on
non-Linux systems.
2015-10-20 23:10:09 +02:00
64d0bef9ef peer_group: add fastd_peer_group_lookup_peer_shell_command macro to simplify shell command lookup 2015-10-18 04:44:14 +02:00
412e341def config: make on_up/down/establish/disestablish commands configurable per peer group 2015-10-18 03:32:21 +02:00
df48485aea peer_group: move to a new header, add recursive lookup macros 2015-10-18 03:04:02 +02:00
d9a5267fce status: ensure that the status socket is unlinked when fastd exits with an error 2015-10-18 01:00:42 +02:00
e9b472dc9e config: allow moving the 'on verify' clause into a peer group 2015-09-04 20:57:33 +02:00
b54f78558b Use __attribute__((packed)) instead of __attribute__((__packed__)) consistently 2015-06-25 23:03:46 +02:00
9ac7f3588d Don't depend on net/if_ether.h
Instead of adding compatiblity code to make this work with musl, just duplicate
the needed definitions in fastd.
2015-06-25 01:03:23 +02:00
fc5e06a19c salsa20{,12}/xmm: avoid symbol conflicts with libnacl
Also remove some dead code
2015-06-22 23:43:08 +02:00
388855affd build: update minimum required CMake version 2015-05-16 17:48:56 +02:00
f82ebae56c config: allow on-verify configuration without any other peers 2015-05-12 00:09:34 +02:00
ec6370ade8 Add some MTU-related Doxygen comments 2015-03-24 17:26:52 +01:00
9eac618a73 Make build dependencies more configurable 2015-03-24 17:13:27 +01:00
9ef4d441ad Add support for defining the MTU per peer 2015-03-24 03:36:49 +01:00
14a991a1ce peer: fix segfault on on-connect with unknown peer 2015-03-24 03:23:05 +01:00
fcf4af3312 config: add missing Doxygen comment 2015-03-24 02:40:18 +01:00
535028b149 iface: add support for interface name patterns 2015-03-24 02:38:59 +01:00
e689f89618 log: allow escaping % patterns 2015-03-24 02:05:54 +01:00
45d573ab61 Move ifname logic from peer to iface 2015-03-23 19:04:49 +01:00
1602e36635 peer: compare interface names when checking peer config equality 2015-03-23 18:51:46 +01:00
03f613d408 Make iface_persist configurable 2015-03-23 07:21:19 +01:00
5f66dbf5d1 peer: create interface when the connection has been established and no interface exists yet
Allows using dynamic interfaces with dynamic peers.
2015-03-23 07:20:02 +01:00
deb76974e2 ec25519-fhmqvc: call fastd_peer_reset to setup newly added dynamic peers 2015-03-23 07:11:33 +01:00
6ab2671259 Improve sync/async execution of up/down scripts 2015-03-23 06:53:52 +01:00
69fc8268d0 peer: set peer name in on-up environment for peer-specific interfaces 2015-03-23 06:30:10 +01:00
e2402e41eb Add interface information to status socket output 2015-03-23 06:22:39 +01:00
57ae84e076 COPYRIGHT: add libancillary copyright 2015-03-23 05:53:32 +01:00
db5c2cafd6 Rename android_ctrl_sock.c to android.c 2015-03-23 05:48:03 +01:00
857a971c3e Some Android fixes for issues introduced by multi-interface support
Not really tested, I'll do that when the multiif support is finished.
2015-03-23 05:46:04 +01:00
15825beebf peer: fix indentation 2015-03-23 05:38:22 +01:00
6a529155f1 config: move packet mark support check to Bison file 2015-03-23 05:27:06 +01:00
b2e576bb17 Improve ifname configuration handling 2015-03-23 05:20:03 +01:00