Commit graph

863 commits

Author SHA1 Message Date
dff92dd471 Fix assertion fail on key renewal handshakes with peers without remotes 2013-07-29 19:28:51 +02:00
35cdc5b562 char* constness cleanup in config parser 2013-07-29 17:47:00 +02:00
eb918a116d Move command line handling out of config.c 2013-07-25 16:20:04 +02:00
5cda45defd Move more code out of fastd.c 2013-07-25 15:33:17 +02:00
900ac61351 Move send functions out of fastd.c 2013-07-25 15:17:54 +02:00
c3dee51736 Move socket handling out of fastd.c 2013-07-25 14:22:19 +02:00
a8304e288b Move _GNU_SOURCE define to types.h 2013-07-25 14:03:54 +02:00
fcc5bcad1a Improve handling of similar remote resolves 2013-07-25 13:49:01 +02:00
530c6eaf60 Make PMTU discovery configurable 2013-07-25 12:03:31 +02:00
aaa2e11810 Set IP_MTU_DISCOVER on sockets 2013-07-25 11:36:40 +02:00
8345c5c33f Introduce tristate type 2013-07-25 11:19:27 +02:00
8d2c058a19 Fix remote record memory leak 2013-07-24 19:16:10 +02:00
95491f3b7e Fix fastd_peer_claim_address for peers with different addresses 2013-07-24 19:13:24 +02:00
69659bce97 Include IP address in "sending handshake" debug messages 2013-07-24 19:03:44 +02:00
aae5265eb5 Allow specifying multiple remote entries for a single peer 2013-07-24 18:44:43 +02:00
bbe0c1f725 Remove dead code handling resolves triggered by received packets 2013-07-24 15:56:23 +02:00
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