Commit graph

68 commits

Author SHA1 Message Date
Quentin 5d8bd6b435 Exit if too big 2019-05-24 14:48:16 +02:00
Quentin fc9ec0e213 Drop unknown packets 2019-05-24 11:25:31 +02:00
Quentin 1739f7a1ab Add a log for unrecognized packet commands 2019-05-24 11:15:52 +02:00
Quentin 516b2707b5 Improve debug 2019-05-24 11:04:37 +02:00
Quentin 33ba4b2d55 Some debug + reset buffers 2019-05-24 10:52:49 +02:00
Quentin 7d7b40724c Fix a stupid bug 2019-05-23 22:53:00 +02:00
Quentin 5fe711dc77 Fix stupid bug 2019-05-21 14:14:59 +02:00
Quentin 2b989f15d8 Fix algo 2019-05-15 09:38:02 +02:00
Quentin ff1b94e3ef Change packet order reception 2019-05-15 09:29:56 +02:00
Quentin e98fb6d8d4 Try to debug donar.
Should swap packet order instead...
2019-05-15 08:54:00 +02:00
Quentin f5303b09bb Fix asserts 2019-05-14 14:54:10 +02:00
Quentin a3712bac77 Must start with id=1 2019-05-14 14:08:58 +02:00
Quentin f94d2109d9 Register packet only if not already delivered! 2019-05-14 13:56:19 +02:00
Quentin 05384a424a Add missing information 2019-05-14 12:02:56 +02:00
Quentin 36a6dbaad2 We want to use an union 2019-05-14 11:23:23 +02:00
Quentin 3e07b012e2 Better comments 2019-05-13 18:41:10 +02:00
Quentin 9fb2396e54 Add current link just in case 2019-05-13 18:38:48 +02:00
Quentin dafd69e649 New round robin is compiling! 2019-05-13 18:37:49 +02:00
Quentin 9cc27e9613 Fix receive logic 2019-05-13 17:26:31 +02:00
Quentin 67a3c2a610 Add missing features to health packet 2019-05-13 16:46:04 +02:00
Quentin 5bcab96393 Add buffer release for control packets (health) 2019-05-13 16:34:22 +02:00
Quentin 5d38679dbb Reimplement timeout RR 2019-05-13 16:14:23 +02:00
Quentin 77b6027feb Rework packet format 2019-05-13 10:02:43 +02:00
Quentin 47e47dceef Many buffers - stopping link broken 2019-05-09 19:53:47 +02:00
Quentin a16fb465f8 Set link number 2019-05-09 15:33:27 +02:00
Quentin 9685885afe Tracking memory leaks is improving 2019-05-09 11:39:03 +02:00
Quentin 8b6f5c63f6 Work but leak 2019-05-07 19:18:27 +02:00
Quentin Dufour 7e25f35042 Refactor my code 2019-04-24 16:23:41 +02:00
Quentin Dufour 0d62fca3d4 Try to fix invalid free() 2019-04-04 10:19:55 +02:00
Quentin Dufour 5f0b22b4f0 Prevent deactivation + increase lggging 2019-04-01 10:38:59 +02:00
Quentin Dufour 347ea4f6cd Inform users that circuit is up on naive 2019-03-28 15:58:18 +01:00
Quentin Dufour 12c057e651 Improve links logging 2019-03-28 15:29:34 +01:00
Quentin Dufour 5e326563b1 Effectively support -h and -b 2019-03-28 15:26:33 +01:00
Quentin Dufour b9d7ec48a2 Update algo structure to support parameters 2019-03-28 11:54:01 +01:00
Quentin Dufour 1b0954ecca It works better when you write correct code 2019-03-27 18:46:48 +01:00
Quentin Dufour 6c276ae3c7 Fix stupid bug 2019-03-27 18:29:19 +01:00
Quentin Dufour ca8eddc0ad Some improvement on RR algo 2019-03-27 18:27:44 +01:00
Quentin Dufour e15e15325c Better logging 2019-03-27 18:11:05 +01:00
Quentin Dufour c6f7199bf6 Fix timer bug + comment some logs 2019-03-27 17:46:10 +01:00
Quentin Dufour b6258759f0 Something that might work 2019-03-27 17:31:46 +01:00
Quentin Dufour acae81b91c WIP link healing 2019-03-27 16:24:39 +01:00
Quentin Dufour 83b205e2c8 improve readability 2019-03-27 14:17:41 +01:00
Quentin Dufour 6a22df4ac1 Improve algorithm logging 2019-03-27 11:48:09 +01:00
Quentin Dufour 627523e1c7 Allow link ban 2019-03-27 11:19:05 +01:00
Quentin Dufour f7c9b9bcd6 Fix accept connection logic 2019-03-25 17:33:08 +01:00
Quentin Dufour 6216935084 Rewrite buffer management, not tested 2019-03-20 15:13:16 +01:00
Quentin Dufour e543c44674 Show buffer states 2019-03-20 10:28:52 +01:00
Quentin Dufour cbf7e0883a Fix timer logic 2019-03-20 09:08:32 +01:00
Quentin Dufour 1530209b22 Fix another bug of comparison 2019-03-20 08:51:40 +01:00
Quentin cd7f12aee0 Try to fix timers 2019-03-19 21:21:00 +01:00