Skip to content

Commit

Permalink
isis: correctly update instance discontinuity time
Browse files Browse the repository at this point in the history
There were a few places where some event counters were updated at the
instance level, but the discontinuity time was mistakenly updated at
the interface level. This commit fixes that.

Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed Oct 18, 2024
1 parent 5112c9a commit f34740d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions holo-isis/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ pub(crate) fn process_pdu_lsp(

// Update event counter.
instance.state.counters.get_mut(level).own_lsp_purge += 1;
iface.state.discontinuity_time = Utc::now();
instance.state.discontinuity_time = Utc::now();
}

// Validate LSP checksum.
Expand Down Expand Up @@ -607,7 +607,7 @@ pub(crate) fn process_pdu_lsp(

// Update event counter.
instance.state.counters.get_mut(level).seqno_skipped += 1;
iface.state.discontinuity_time = Utc::now();
instance.state.discontinuity_time = Utc::now();
}
return Ok(());
}
Expand Down Expand Up @@ -734,7 +734,7 @@ pub(crate) fn process_pdu_snp(
// Update event counter.
instance.state.counters.get_mut(level).seqno_skipped +=
1;
iface.state.discontinuity_time = Utc::now();
instance.state.discontinuity_time = Utc::now();
}
}
Ordering::Equal => {
Expand Down

0 comments on commit f34740d

Please sign in to comment.