Commit Graph

  • 91cf697fb4 Set MSG_CONFIRM Adrien Gallouët 2017-11-16 08:13:00 +00:00
  • 153108aeac Cleanup .travis.yml Adrien Gallouët 2017-11-16 07:48:46 +00:00
  • 2c82c01233 Don't set mtu in mud_create() Adrien Gallouët 2017-11-15 22:44:03 +00:00
  • 21957cc0cc Add mud_set_aes() Adrien Gallouët 2017-11-15 22:41:13 +00:00
  • 63b0b4261c Check for MUD_DFRAG to disable fragment flag Adrien Gallouët 2017-11-15 22:24:29 +00:00
  • 522ca2804d Add mud_new_key() Adrien Gallouët 2017-11-15 22:04:44 +00:00
  • 78b76437e5 Force _GNU_SOURCE on Linux Adrien Gallouët 2017-03-07 10:15:54 +00:00
  • b9a346dd62 Update README.md Adrien Gallouët 2017-03-02 17:40:09 +01:00
  • dfcc08feed Fix keyx regressions and cleanup Adrien Gallouët 2017-01-29 12:01:27 +00:00
  • 49662179e9 Refuse to create a new mud with a bad clock Adrien Gallouët 2017-01-27 19:23:26 +00:00
  • 996126cc40 Use MUD_EPOCH instead of 1970 Adrien Gallouët 2017-01-27 19:05:21 +00:00
  • f67eae0a7f Restore old behaviour Adrien Gallouët 2017-01-20 09:52:28 +00:00
  • 8dc7a2d4b3 Check for send_time too before dup Adrien Gallouët 2017-01-19 14:53:56 +00:00
  • f6b6610980 Move mud_keyx in mud_conf Adrien Gallouët 2017-01-18 10:49:45 +00:00
  • 82299973e0 Code cleanup Adrien Gallouët 2017-01-18 10:19:18 +00:00
  • 762b4487bf Force kx on all paths Adrien Gallouët 2017-01-16 16:10:28 +00:00
  • 19e3115420 Do not remove path with the same kiss Adrien Gallouët 2017-01-12 13:21:17 +00:00
  • 58c734a681 Remove a useless loop in mud_send() Adrien Gallouët 2017-01-12 10:11:04 +00:00
  • 2d171c6dd9 Fix mud_kiss_path() Adrien Gallouët 2017-01-06 11:47:45 +00:00
  • 7cc6e7ad72 Remove useless memcmp() Adrien Gallouët 2016-12-22 15:00:01 +00:00
  • fd1a1285ac Set conf.mtu.local for all new path Adrien Gallouët 2016-12-22 13:43:02 +00:00
  • bd5323a46e Add mud_set_tc() and use CS6 by default Adrien Gallouët 2016-12-22 11:40:06 +00:00
  • 2fd70eb14e Code cleanup Adrien Gallouët 2016-12-22 11:03:18 +00:00
  • fe5499d46d Keep track of MTU in path Adrien Gallouët 2016-12-21 16:04:34 +00:00
  • b5a5cb2f1f Update remote mtu in active path too Adrien Gallouët 2016-12-19 16:45:14 +00:00
  • 00db335bb2 Move mud_mtux in mud_conf Adrien Gallouët 2016-12-15 10:05:00 +00:00
  • d7d4e9ffc8 Merge mud_kiss and mud_bakx as mud_conf Adrien Gallouët 2016-12-15 09:25:36 +00:00
  • ef260f90de Send a kiss when recv_time is too old Adrien Gallouët 2016-12-13 13:49:40 +00:00
  • bd4a11f73c Reformat Adrien Gallouët 2016-12-12 16:40:04 +00:00
  • 749adfd330 Fix build on OpenBSD Adrien Gallouët 2016-12-12 15:56:52 +00:00
  • 078a30611e Kiss for a new path Adrien Gallouët 2016-12-12 15:10:30 +00:00
  • c5b6ba0121 Check mud_packet size earlier Adrien Gallouët 2016-12-12 14:54:35 +00:00
  • 35368f10ab Give a kiss to get some love Adrien Gallouët 2016-12-08 11:19:25 +00:00
  • c156aa68e3 Code cleanup Adrien Gallouët 2016-12-08 10:08:46 +00:00
  • cb9ecb592f Rework proto Adrien Gallouët 2016-12-07 16:59:58 +00:00
  • 5a67c21b95 Reformat Adrien Gallouët 2016-12-05 13:49:16 +00:00
  • faceca783f Server should only reply Adrien Gallouët 2016-12-05 10:15:03 +00:00
  • efe7184463 Merge pull request #1 from jedisct1/patch-1 Adrien Gallouët 2016-12-04 19:44:24 +01:00
  • 80aff1cbd1 Add missing return value Frank Denis 2016-12-04 18:31:25 +01:00
  • e1fd7f8b0d Ping for new path Adrien Gallouët 2016-12-02 10:57:34 +00:00
  • 8782e48c99 Respond sparingly when receiving a badly encrypted message Adrien Gallouët 2016-12-02 10:47:02 +00:00
  • 662fe83173 Add first draft backup Adrien Gallouët 2016-11-28 10:59:27 +00:00
  • 72d0573c95 Force send_path() on bad path Adrien Gallouët 2016-11-25 16:39:59 +00:00
  • 672e2ba2b5 Remove mud_set_nonblock() Adrien Gallouët 2016-11-24 11:49:49 +00:00
  • ca9aa34ae3 Rework pong Adrien Gallouët 2016-11-07 16:50:00 +00:00
  • c612a0772e Remove the internal tracker (failover) Adrien Gallouët 2016-11-07 15:01:51 +00:00
  • 4e6094dff9 Don't use errno from mud_path() Adrien Gallouët 2016-10-28 10:20:14 +00:00
  • f94489e199 Set DF only on linux for now Adrien Gallouët 2016-10-28 07:54:28 +00:00
  • d124f84cfb Update return code (and errno) of mud_send() Adrien Gallouët 2016-10-28 07:52:31 +00:00
  • 22d61780fd Remove pull/push Adrien Gallouët 2016-10-27 15:00:03 +00:00
  • df0d941241 Set DF for IPv4 and limit mtu to [500,1450] Adrien Gallouët 2016-10-25 09:08:56 +00:00
  • b82534d54c Add mud_set_mtu() Adrien Gallouët 2016-10-18 16:40:05 +00:00
  • 4c34454a23 Don't call crypto_aead_aes256gcm_beforenm() if no aesni.. Adrien Gallouët 2016-10-05 08:01:03 +00:00
  • d255074199 Add MTU negotiation Adrien Gallouët 2016-09-23 15:11:42 +00:00
  • d5297b8a70 Don't wait too long to resend keyx if no answer Adrien Gallouët 2016-09-20 09:29:50 +00:00
  • f6acc993a0 Do not log when mud_decrypt() fails Adrien Gallouët 2016-09-07 13:24:21 +00:00
  • d8d8326f75 Try to keep packets when send() fails Adrien Gallouët 2016-09-06 08:30:26 +00:00
  • 1659caa7ca Simplify failover and ping Adrien Gallouët 2016-09-05 09:21:55 +00:00
  • 6a9be23e69 Add mud_peer_is_up() Adrien Gallouët 2016-09-02 09:39:38 +00:00
  • a22476f18a Ugly hack to keep connection on server restart Adrien Gallouët 2016-08-26 11:17:42 +00:00
  • 9f1bf41a01 Code cleanup Adrien Gallouët 2016-07-29 10:34:55 +00:00
  • cec0e4132e Don't count disabled paths in mud_is_up() Adrien Gallouët 2016-07-29 10:31:10 +00:00
  • c1ce6c7481 Add mud_set_on() to enable/disable a local addr Adrien Gallouët 2016-07-27 20:23:19 +00:00
  • c1b501bc19 Add tos/tclass support in mud_send() Adrien Gallouët 2016-07-25 15:00:33 +00:00
  • ed46a3b1ea Remove a useless memcpy in mud_ctrl_path() Adrien Gallouët 2016-07-25 11:17:32 +00:00
  • 1fe5190e8a Use a new more robust key exchange Adrien Gallouët 2016-07-20 15:13:22 +00:00
  • c1b13488af Use private key for internal packets Adrien Gallouët 2016-07-19 07:03:02 +00:00
  • df67357d36 Code cleanup Adrien Gallouët 2016-07-15 15:03:48 +00:00
  • 67f1f6abc2 Add AES-NI negotiation Adrien Gallouët 2016-07-12 16:53:04 +00:00
  • 4bbb3bf714 Make the code more readable (at least for me...) Adrien Gallouët 2016-07-07 14:24:09 +00:00
  • 9141c8b6c6 Code cleanup Adrien Gallouët 2016-07-06 16:08:42 +00:00
  • fa1586b81e Use ipaddr instead of index to find the paths Adrien Gallouët 2016-07-06 13:39:59 +00:00
  • bd203dd291 Use CLOCK_REALTIME Adrien Gallouët 2016-07-05 15:40:15 +00:00
  • 6dd9e410c8 Update README.md Adrien Gallouët 2016-06-30 15:27:15 +02:00
  • 5c77233093 Use clock_gettime() Adrien Gallouët 2016-06-30 09:38:51 +00:00
  • 70c4cee57b The first packet MUST be a ping Adrien Gallouët 2016-06-29 13:14:28 +00:00
  • bc2b1f9add Use exact addrlen in sendmsg() Adrien Gallouët 2016-06-24 13:18:22 +00:00
  • 6a20296bc4 Fix bad size in bind() Adrien Gallouët 2016-06-22 17:54:17 +00:00
  • 4499b841f4 Crypto cleanup Adrien Gallouët 2016-06-22 08:59:33 +00:00
  • c605043ffe Don't touch SO_{RCV,SND}BUF (at least for now) Adrien Gallouët 2016-06-22 08:16:53 +00:00
  • b7a0e222bf Remove old variables Adrien Gallouët 2016-06-22 08:14:27 +00:00
  • bb307f26dc Code cleanup Adrien Gallouët 2016-06-22 06:53:45 +00:00
  • 9474ea9d9d Select the path with addr on BSD Adrien Gallouët 2016-06-21 16:46:34 +00:00
  • 5289ff0f27 Give some love to BSD Adrien Gallouët 2016-06-21 07:04:37 +00:00
  • f6df78d016 Remove mud_new_key() Adrien Gallouët 2016-06-20 22:11:29 +00:00
  • 29b5a3148d Configure libsodium Adrien Gallouët 2016-06-20 21:52:05 +00:00
  • 7236e1f6bb Import libsodium Adrien Gallouët 2016-06-20 21:43:26 +00:00
  • 3c9ee4c625 Code cleanup Adrien Gallouët 2016-06-20 21:19:01 +00:00
  • c5e5cadcdc Add travis Adrien Gallouët 2016-06-20 21:09:49 +00:00
  • 2c4443a823 Code cleanup angt 2016-05-10 10:36:04 +00:00
  • de465a17b6 Don't use getaddrinfo() angt 2016-05-08 14:02:59 +02:00
  • 244ad0f714 Remove mud_bind() angt 2016-05-02 08:39:02 +00:00
  • 566a1da699 API cleanup angt 2016-05-01 08:41:45 +00:00
  • 0c7390bf8f Reset path before ping angt 2016-04-30 14:40:38 +00:00
  • 549fc058ad Try to read as much as we can angt 2016-04-30 13:24:04 +00:00
  • b4b687bd4c Code cleanup angt 2016-04-30 12:53:26 +00:00
  • a26e2af038 Always update path->send.time angt 2016-04-30 12:38:18 +00:00
  • e0c80bef3d Don't rewrite cmsg if the path exists angt 2016-04-30 12:34:38 +00:00
  • 7e5c487951 Add mud_get_key() angt 2016-04-26 06:50:04 +00:00
  • 3b7853c9ba Use unsigned char angt 2016-04-26 06:34:48 +00:00