Commit Graph

326 Commits

Author SHA1 Message Date
Adrien Gallouët
d4546ccae0 Add mud_del_path()
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2018-01-29 16:17:06 +00:00
Adrien Gallouët
61e7a23a11 Rework mud->peer and remove mud_ipaddr
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2018-01-29 16:17:06 +00:00
Adrien Gallouët
7c90d54b91 Add mud_add_path()
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2018-01-24 16:27:41 +00:00
Adrien Gallouët
a6555c8ab1 Format code
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2018-01-24 10:14:08 +00:00
Adrien Gallouët
8d861c9682 Allow client to add the first path
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2018-01-24 10:07:59 +00:00
Adrien Gallouët
368ab1b710 Add some checks in mud_set_path()
They are useless in theory but as we do not define
the macros CMSG_FIRSTHDR and CMSG_NXTHDR..

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2017-12-01 11:02:33 +00:00
Adrien Gallouët
13cf44c813 Code cleanup
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2017-11-26 13:17:15 +00:00
Adrien Gallouët
91cf697fb4 Set MSG_CONFIRM
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2017-11-16 09:45:17 +00:00
Adrien Gallouët
153108aeac Cleanup .travis.yml
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2017-11-16 07:51:06 +00:00
Adrien Gallouët
2c82c01233 Don't set mtu in mud_create()
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2017-11-15 22:44:03 +00:00
Adrien Gallouët
21957cc0cc Add mud_set_aes()
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2017-11-15 22:41:13 +00:00
Adrien Gallouët
63b0b4261c Check for MUD_DFRAG to disable fragment flag
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2017-11-15 22:24:29 +00:00
Adrien Gallouët
522ca2804d Add mud_new_key()
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2017-11-15 22:04:44 +00:00
Adrien Gallouët
78b76437e5 Force _GNU_SOURCE on Linux 2017-03-07 10:41:29 +00:00
Adrien Gallouët
b9a346dd62 Update README.md 2017-03-02 17:40:09 +01:00
Adrien Gallouët
dfcc08feed Fix keyx regressions and cleanup 2017-01-29 12:01:27 +00:00
Adrien Gallouët
49662179e9 Refuse to create a new mud with a bad clock 2017-01-27 19:23:26 +00:00
Adrien Gallouët
996126cc40 Use MUD_EPOCH instead of 1970 2017-01-27 19:05:21 +00:00
Adrien Gallouët
f67eae0a7f Restore old behaviour 2017-01-20 09:52:28 +00:00
Adrien Gallouët
8dc7a2d4b3 Check for send_time too before dup 2017-01-19 14:53:56 +00:00
Adrien Gallouët
f6b6610980 Move mud_keyx in mud_conf 2017-01-18 15:23:37 +00:00
Adrien Gallouët
82299973e0 Code cleanup 2017-01-18 10:19:18 +00:00
Adrien Gallouët
762b4487bf Force kx on all paths 2017-01-16 16:10:28 +00:00
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