Commit Graph

169 Commits

Author SHA1 Message Date
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
Adrien Gallouët
c1b13488af Use private key for internal packets 2016-07-19 07:03:02 +00:00
Adrien Gallouët
df67357d36 Code cleanup 2016-07-15 18:21:01 +00:00
Adrien Gallouët
67f1f6abc2 Add AES-NI negotiation 2016-07-12 16:53:04 +00:00
Adrien Gallouët
4bbb3bf714 Make the code more readable (at least for me...) 2016-07-07 14:24:09 +00:00
Adrien Gallouët
9141c8b6c6 Code cleanup 2016-07-06 16:08:42 +00:00
Adrien Gallouët
fa1586b81e Use ipaddr instead of index to find the paths 2016-07-06 13:39:59 +00:00
Adrien Gallouët
bd203dd291 Use CLOCK_REALTIME 2016-07-05 15:40:15 +00:00
Adrien Gallouët
6dd9e410c8 Update README.md 2016-06-30 15:27:15 +02:00
Adrien Gallouët
5c77233093 Use clock_gettime() 2016-06-30 09:38:51 +00:00
Adrien Gallouët
70c4cee57b The first packet MUST be a ping 2016-06-29 13:14:28 +00:00
Adrien Gallouët
bc2b1f9add Use exact addrlen in sendmsg() 2016-06-24 13:18:22 +00:00
Adrien Gallouët
6a20296bc4 Fix bad size in bind() 2016-06-22 17:54:17 +00:00
Adrien Gallouët
4499b841f4 Crypto cleanup 2016-06-22 08:59:33 +00:00
Adrien Gallouët
c605043ffe Don't touch SO_{RCV,SND}BUF (at least for now) 2016-06-22 08:16:53 +00:00
Adrien Gallouët
b7a0e222bf Remove old variables 2016-06-22 08:14:27 +00:00
Adrien Gallouët
bb307f26dc Code cleanup 2016-06-22 06:55:31 +00:00
Adrien Gallouët
9474ea9d9d Select the path with addr on BSD 2016-06-21 16:46:34 +00:00
Adrien Gallouët
5289ff0f27 Give some love to BSD 2016-06-21 07:04:37 +00:00
Adrien Gallouët
f6df78d016 Remove mud_new_key() 2016-06-20 22:11:29 +00:00
Adrien Gallouët
29b5a3148d Configure libsodium 2016-06-20 22:06:28 +00:00
Adrien Gallouët
7236e1f6bb Import libsodium 2016-06-20 21:44:30 +00:00
Adrien Gallouët
3c9ee4c625 Code cleanup 2016-06-20 21:19:01 +00:00
Adrien Gallouët
c5e5cadcdc Add travis 2016-06-20 21:09:49 +00:00
angt
2c4443a823 Code cleanup 2016-05-10 10:36:04 +00:00
angt
de465a17b6 Don't use getaddrinfo() 2016-05-08 14:02:59 +02:00
angt
244ad0f714 Remove mud_bind() 2016-05-02 08:39:02 +00:00
angt
566a1da699 API cleanup 2016-05-01 08:41:45 +00:00
angt
0c7390bf8f Reset path before ping 2016-04-30 14:40:38 +00:00
angt
549fc058ad Try to read as much as we can 2016-04-30 13:24:04 +00:00
angt
b4b687bd4c Code cleanup 2016-04-30 12:53:26 +00:00
angt
a26e2af038 Always update path->send.time 2016-04-30 12:38:18 +00:00
angt
e0c80bef3d Don't rewrite cmsg if the path exists 2016-04-30 12:34:38 +00:00
angt
7e5c487951 Add mud_get_key() 2016-04-26 06:50:04 +00:00
angt
3b7853c9ba Use unsigned char 2016-04-26 06:34:48 +00:00