Fix handling of seqno requests for local routes

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2023-11-07 18:11:49 +01:00
parent 1e6ebbc8fb
commit 0cdedb51e4
3 changed files with 72 additions and 30 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ impl SourceTable {
let source_key = SourceKey::new(update.subnet(), update.router_id());
match self.get(&source_key) {
Some(entry) => {
(!update.seqno().lt(&entry.seqno()))
(update.seqno().gt(&entry.seqno()))
|| (update.seqno() == entry.seqno() && update.metric() < entry.metric())
|| update.metric().is_infinite()
}