Commit Graph

31 Commits

Author SHA1 Message Date
Lee Smet ae01592043 Allow selection of infinite metric routes
This fixes an issue where a selected route with infinite metric was
considered lost every time an update for that subnet came in,
potentially causing an update storm.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-11-21 13:29:35 +01:00
Lee Smet d166163d57 Close #49: Add source entry expiration timers
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-11-13 14:59:58 +01:00
Lee Smet ddb95d3da4 Fix #51: Properly handle retractions
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-11-10 18:16:18 +01:00
Lee Smet 7bf155644c Clean up dead code
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-11-08 19:50:22 +01:00
Lee Smet 0cdedb51e4 Fix handling of seqno requests for local routes
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-11-07 18:11:49 +01:00
Lee Smet b6d3b98eed Implement SeqNo request and handling
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-11-07 11:45:41 +01:00
Lee Smet e2e4e93205 Improve printing of routes/sources
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-11-02 14:30:31 +01:00
Lee Smet 1dffc61206 Use dedicated RouterId type in existing code
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-09-11 14:55:46 +02:00
Lee Smet 0b5d86835d Close #20: Implement dedicated subnet type
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-09-06 15:29:58 +02:00
Lee Smet 4b36322a35 Switch router concurrency to left-right
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-08-31 18:35:36 +02:00
Lee Smet 3171f061ef Clippy fixes and code cleanup
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-08-21 16:21:20 +02:00
Lee Smet 7b38b0bf6b Start refactoring to use new babel types
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-08-03 11:55:42 +02:00
Lee Smet ec2b92fac3 Use crypto module instead of x25519 import in code
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-08-01 15:27:44 +02:00
Lee Smet 974f4ac007 Address some clippy comments
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-07-26 13:15:57 +02:00
Lee Smet 2c5eea29ae Implement proper SeqNo comparison
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-07-26 13:05:35 +02:00
Lee Smet 44e9ad5c1b Refactor SeqNo into a dedicated type
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-07-26 12:02:44 +02:00
Lee Smet 87c6c475e0 Rename is_retracted on Metric to is_infinite
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-07-25 17:34:56 +02:00
Lee Smet 89b36d0b64 Refactor Metric into a dedicated type
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-07-25 17:31:29 +02:00
Lee Smet 4b6483025c Move update_feasible logic directly on SourceTable
It was previously on the Router, but did not use self and passed the
SourceTable as argument.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-07-25 16:41:14 +02:00
Lee Smet e250f8e692 Cleanup SourceKey SourceTable FeasabilityDistance
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2023-07-25 13:13:05 +02:00
Maxime Van Hees 3182ae08ec code cleanup 2023-05-25 14:00:42 +00:00
Maxime Van Hees 0116c550a8 updated router_id to be PublicKey type 2023-05-22 16:19:50 +00:00
Maxime Van Hees e0cbb7fdd6 cleanup with clippy 2023-05-19 17:57:32 +02:00
Maxime Van Hees aef2c24d9e route acquisition update 2023-05-16 15:21:19 +00:00
Maxime Van Hees e03b35a956 router refactor 2023-05-15 14:58:14 +00:00
Maxime Van Hees 60843db17e Testing seqno update 2023-05-12 15:40:01 +00:00
Maxime Van Hees fc9a1647b1 leefactor 2023-05-12 14:55:00 +00:00
Maxime Van Hees fa280aebf5 propagting routes 2023-05-11 16:00:01 +00:00
Maxime Van Hees 6f9a69c5fd added route expiry timer 2023-05-10 15:10:13 +00:00
Maxime Van Hees 09bc9b5eca small refactor: replace SourceKey by FeasibilityDistance 2023-05-09 12:42:24 +00:00
Maxime Van Hees 4d4cc855a8 added routing table and source table v1 2023-05-03 17:05:07 +00:00