]> git.ipfire.org Git - thirdparty/bird.git/commit
Babel: Fix missing modulo comparison of seqnos
authorToke Høiland-Jørgensen <toke@toke.dk>
Mon, 30 Jan 2023 22:36:39 +0000 (23:36 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Mon, 30 Jan 2023 22:36:39 +0000 (23:36 +0100)
commit3e7e4a71868bc519aacc0eb785471b46fc345a5c
treef6ae8ac0f57c6aad4b9ad53c47d71425cba3c82c
parent72230d3ca37d34cafa0442c23f83121ae1fc41be
Babel: Fix missing modulo comparison of seqnos

Juliusz noticed there were a couple of places we were doing straight
inequality comparisons of seqnos in Babel. This is wrong because seqnos can
wrap: so we need to use the modulo-64k comparison function for these cases
as well.

Introduce a strict-inequality version of the modulo-comparison for this
purpose.
proto/babel/babel.c