]> git.ipfire.org Git - thirdparty/bird.git/commit
Nest: Improve export counter handling
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 5 Feb 2019 18:00:43 +0000 (19:00 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 5 Feb 2019 18:00:43 +0000 (19:00 +0100)
commit6e8fb66859a17b295cd9246264221a75cdbe6c55
treea664f3e938c927355a44ccccd0ff4da0d50b166c
parent52fdd1cb76be1e278799001fa57f56888062dd86
Nest: Improve export counter handling

One of previous workarounds for phantom route avoidance breaks export
counters by expanding sending of spurious withdraws, which are send when
we are not sure whether we have advertised that routes in the past.
If not, then export counter is decreased, but it was not increased
before, so it overflows under zero.

The patch fixes that by sendung spurious withdraws, but not counting them
on export counter. That may lead to error in the other direction, but that
happens only as a race condition (i.e., in normal operation filters
return proper values about old route export state).
nest/rt-table.c