Commit Graph

303 Commits

Author SHA1 Message Date
Adrien Gallouët
19e3115420 Do not remove path with the same kiss 2017-01-12 13:22:34 +00:00
Adrien Gallouët
58c734a681 Remove a useless loop in mud_send() 2017-01-12 10:11:04 +00:00
Adrien Gallouët
2d171c6dd9 Fix mud_kiss_path() 2017-01-06 11:47:45 +00:00
Adrien Gallouët
7cc6e7ad72 Remove useless memcmp() 2016-12-22 15:00:01 +00:00
Adrien Gallouët
fd1a1285ac Set conf.mtu.local for all new path 2016-12-22 13:43:02 +00:00
Adrien Gallouët
bd5323a46e Add mud_set_tc() and use CS6 by default 2016-12-22 11:40:06 +00:00
Adrien Gallouët
2fd70eb14e Code cleanup 2016-12-22 11:03:18 +00:00
Adrien Gallouët
fe5499d46d Keep track of MTU in path 2016-12-21 16:10:38 +00:00
Adrien Gallouët
b5a5cb2f1f Update remote mtu in active path too 2016-12-19 16:45:14 +00:00
Adrien Gallouët
00db335bb2 Move mud_mtux in mud_conf 2016-12-15 10:05:00 +00:00
Adrien Gallouët
d7d4e9ffc8 Merge mud_kiss and mud_bakx as mud_conf 2016-12-15 09:25:36 +00:00
Adrien Gallouët
ef260f90de Send a kiss when recv_time is too old 2016-12-13 13:52:45 +00:00
Adrien Gallouët
bd4a11f73c Reformat 2016-12-12 16:40:04 +00:00
Adrien Gallouët
749adfd330 Fix build on OpenBSD
BUG introduced by clang-format...
2016-12-12 15:56:52 +00:00
Adrien Gallouët
078a30611e Kiss for a new path 2016-12-12 15:10:30 +00:00
Adrien Gallouët
c5b6ba0121 Check mud_packet size earlier 2016-12-12 14:54:35 +00:00
Adrien Gallouët
35368f10ab Give a kiss to get some love 2016-12-08 11:19:25 +00:00
Adrien Gallouët
c156aa68e3 Code cleanup 2016-12-08 10:34:47 +00:00
Adrien Gallouët
cb9ecb592f Rework proto 2016-12-07 16:59:58 +00:00
Adrien Gallouët
5a67c21b95 Reformat 2016-12-05 14:38:33 +00:00
Adrien Gallouët
faceca783f Server should only reply 2016-12-05 10:15:03 +00:00
Adrien Gallouët
efe7184463 Merge pull request #1 from jedisct1/patch-1
Add missing return value
2016-12-04 19:44:24 +01:00
Frank Denis
80aff1cbd1 Add missing return value 2016-12-04 18:31:25 +01:00
Adrien Gallouët
e1fd7f8b0d Ping for new path 2016-12-02 10:57:34 +00:00
Adrien Gallouët
8782e48c99 Respond sparingly when receiving a badly encrypted message 2016-12-02 10:47:02 +00:00
Adrien Gallouët
662fe83173 Add first draft backup 2016-11-28 10:59:27 +00:00
Adrien Gallouët
72d0573c95 Force send_path() on bad path 2016-11-25 16:39:59 +00:00
Adrien Gallouët
672e2ba2b5 Remove mud_set_nonblock() 2016-11-24 11:49:49 +00:00
Adrien Gallouët
ca9aa34ae3 Rework pong 2016-11-18 17:44:10 +00:00
Adrien Gallouët
c612a0772e Remove the internal tracker (failover) 2016-11-07 15:01:51 +00:00
Adrien Gallouët
4e6094dff9 Don't use errno from mud_path() 2016-10-28 10:20:14 +00:00
Adrien Gallouët
f94489e199 Set DF only on linux for now 2016-10-28 07:54:28 +00:00
Adrien Gallouët
d124f84cfb Update return code (and errno) of mud_send() 2016-10-28 07:52:31 +00:00
Adrien Gallouët
22d61780fd Remove pull/push 2016-10-27 15:00:03 +00:00
Adrien Gallouët
df0d941241 Set DF for IPv4 and limit mtu to [500,1450] 2016-10-25 09:08:56 +00:00
Adrien Gallouët
b82534d54c Add mud_set_mtu() 2016-10-18 16:41:41 +00:00
Adrien Gallouët
4c34454a23 Don't call crypto_aead_aes256gcm_beforenm() if no aesni.. 2016-10-05 08:01:03 +00:00
Adrien Gallouët
d255074199 Add MTU negotiation 2016-10-04 13:23:14 +00:00
Adrien Gallouët
d5297b8a70 Don't wait too long to resend keyx if no answer 2016-09-20 09:29:50 +00:00
Adrien Gallouët
f6acc993a0 Do not log when mud_decrypt() fails 2016-09-07 13:24:21 +00:00
Adrien Gallouët
d8d8326f75 Try to keep packets when send() fails 2016-09-06 08:30:26 +00:00
Adrien Gallouët
1659caa7ca Simplify failover and ping 2016-09-05 09:21:55 +00:00
Adrien Gallouët
6a9be23e69 Add mud_peer_is_up() 2016-09-02 09:39:38 +00:00
Adrien Gallouët
a22476f18a Ugly hack to keep connection on server restart 2016-08-26 11:17:42 +00:00
Adrien Gallouët
9f1bf41a01 Code cleanup 2016-07-29 10:36:16 +00:00
Adrien Gallouët
cec0e4132e Don't count disabled paths in mud_is_up() 2016-07-29 10:31:10 +00:00
Adrien Gallouët
c1ce6c7481 Add mud_set_on() to enable/disable a local addr 2016-07-27 20:23:19 +00:00
Adrien Gallouët
c1b501bc19 Add tos/tclass support in mud_send() 2016-07-25 15:00:33 +00:00
Adrien Gallouët
ed46a3b1ea Remove a useless memcpy in mud_ctrl_path() 2016-07-25 11:17:32 +00:00
Adrien Gallouët
1fe5190e8a Use a new more robust key exchange 2016-07-20 15:13:22 +00:00