Commit graph

1247 commits

Author SHA1 Message Date
0aa335a1c7 Remove handing for packets received on wrong sockets (this shouldn't happen) 2013-07-24 15:53:54 +02:00
01196a2387 Don't let resolves delay handshakes 2013-07-24 13:54:35 +02:00
0b8d807bf6 Don't initialize peers before dropping privileges 2013-07-24 13:50:31 +02:00
b82c6ed0cb Use schedule_handshake in handle_resolv_returns 2013-07-23 21:11:33 +02:00
ce4645aef8 Don't trigger a resolve when a packet from an unknown peer is received 2013-07-23 20:52:48 +02:00
945cc762af Prepare for improved peer state handling 2013-07-23 19:48:46 +02:00
f0a655e9db Nicer command line option specification 2013-07-19 18:42:58 +02:00
ca648e7a3b Generalize float attribute, deprecate old float syntax 2013-07-19 18:29:30 +02:00
1812a63c04 Use calloc to allocate peer configs 2013-07-17 21:31:29 +02:00
88a634990d More whitespace fixes 2013-07-17 21:28:05 +02:00
4d36f3c083 Invalidate old session on method changes 2013-07-12 01:39:22 +02:00
a1da123278 scanner: ignore \r in config files 2013-07-12 01:19:38 +02:00
96d8f1a900 Supply the correct sockaddr size for bind 2013-07-12 01:10:25 +02:00
a8f545dbe1 Fix typos in usage output 2013-07-04 14:02:04 +02:00
7c83e00af1 Fix some whitespace errors 2013-06-09 19:13:03 +02:00
685b55ee5b Don't allow peer groups in TUN mode 2013-06-09 19:12:00 +02:00
d89701091d Fix spelling of 'tunnelling' 2013-06-02 19:47:00 +02:00
46e337a1fd Optimize send_all() to allow zero-copy TUN mode 2013-05-20 10:41:20 +02:00
3c8abc1921 Add send_all() function to reduce duplicate code 2013-05-20 10:36:39 +02:00
23510adffe Simplify TUN/TAP receive handling 2013-05-19 19:38:26 +02:00
7473551113 Simplify send funktion 2013-05-19 19:27:41 +02:00
2a2ee4ef99 Cast void* to char* before pointer arithmetic 2013-05-19 19:21:56 +02:00
31078a8449 Simplify handling of received packets 2013-05-19 19:13:33 +02:00
933609fc6e Add a missing return in handle_socket_receive_known() 2013-05-19 18:27:09 +02:00
ac4d8d1aea Simplify socket receive path 2013-05-19 17:42:16 +02:00
df5c637538 Minor cleanup in resolver 2013-04-25 19:20:58 +02:00
c7383edd72 Fix memory leak in config parser 2013-04-25 13:36:01 +02:00
f39efad8df String stack buffer sizes must be aligned because of optimized strlen builtins. 2013-04-24 23:08:18 +02:00
c2f1874f38 Provide the correct local address on first on-verify for a new temporary peer 2013-04-24 13:27:32 +02:00
1d2444f626 Initialize local address on peer creation 2013-04-24 13:10:32 +02:00
adaedb9299 Miscellaneous fixes in ethernet address handling
Check the length of ethernet frames, and the fastd_eth_addr_t structure must be
packed.
2013-04-22 14:08:33 +02:00
7b8a9acd7a shell: add interface for link-local addresses to PEER_ADDRESS as well 2013-04-21 01:49:25 +02:00
dc9fa15a48 Ignore backup files 2013-04-20 23:55:16 +02:00
c8431881e0 Just some whitespace fixes 2013-04-20 21:44:33 +02:00
dda9809683 ec25519-fhmqvc: drop is_established test in protocol_handle_recv()
handle_socket() now tests it before calling handle_recv
2013-04-20 20:03:47 +02:00
289a3ee320 Always include interface name for link-local addresses 2013-04-20 18:53:10 +02:00
3fcb880682 Greatly improve handling of hosts with multiple IP addresses 2013-04-20 18:43:12 +02:00
daf3d6e8db Fix handling of the local address in shell commands
Without this fix, using on-establish/disestablish/verify would cause a strange
zero port when a bind with a random port was used, and a segmentation fault with
dynamic binds.
2013-04-17 21:44:02 +02:00
41ea8e4549 Set development version 2013-03-30 19:51:54 +01:00
d9ce47b2da Don't read the default peer group twice on startup
There are no negative consequences when the peers are loaded twice, but we can
spare some log spam like this.
2013-03-21 23:48:05 +01:00
bd982075b9 Remove debian init script again
This reverts commit 0f7aac271c.

The scripts live in the /debian directory of the Debian package source, there
is no reason to duplicate them in this git.
2013-03-21 23:44:59 +01:00
Nils Schneider
0f7aac271c add debian init script to examples/
fastd-debian-init should be copied to /etc/init.d/fastd
fastd-debian-default should be copied to /etc/default/fastd
2013-03-12 18:20:38 +01:00
ece6f99436 fastd v8 2013-03-10 18:34:37 +01:00
631c13d247 Add options to hide IP and MAC addresses from log output 2013-03-09 22:54:06 +01:00
ec8109fa53 Don't try to add temporary peers for disabled keys 2013-03-09 10:42:37 +01:00
f4e8956256 Fix crash on invalid key definitions 2013-03-08 22:16:06 +01:00
103133c2fc Handle duplicate keys
When two peers are configured with the same key, disable both. When a temporary
peer's key is configured, delete the temporary key.
2013-03-08 22:07:02 +01:00
56255a15a3 Really fix adding new peers from a peer dir 2013-03-08 21:56:10 +01:00
ef3db76e37 Don't forget all peers when no peers are configured in peer dirs 2013-03-08 21:26:40 +01:00
8b96055088 Don't lose all but one peer configured in peer dirs after loading
This regression was introduced in 4e9b2a8819.
2013-03-08 20:28:31 +01:00