summaryrefslogtreecommitdiffstats
path: root/src/vnet/lawful-intercept
diff options
context:
space:
mode:
authorArthur de Kerhor <arthurdekerhor@gmail.com>2022-05-16 19:46:22 +0200
committerDamjan Marion <dmarion@me.com>2022-05-19 12:30:58 +0000
commitadd6a384e9444dfba86ae493a07bf3641e74126e (patch)
tree0efc9a1a8f0362bd766aa24f8c15880856a17692 /src/vnet/lawful-intercept
parent14a7442e73721b3484fdd870464bd582a693626d (diff)
stats: fix collector updates of symlinks
A node name is not bound to a node index. For example, if an interface is deleted and re-added, the indexes of its nodes "<itfc_name>-tx" and "<itfc_name>-output" may change. Thus, when the collector updates the nodes stats, it should first delete all the symlinks for nodes that have changed their names before adding new symlinks. Otherwise, it could attempt to add already existing symlinks or delete valid ones. Example of a series of command that triggers a crash in the assert `ASSERT (node_data[i].symlinks[j] != CLIB_U32_MAX);`: ``` create loopback interface create loopback interface ``` Wait for the nodes stats to update, then: ``` delete loopback interface intfc loop0 delete loopback interface intfc loop1 create loopback interface create loopback interface ``` Type: fix Change-Id: Ief8e7135e5c02dc6bc64dc94b76cff21ea9ab3a9 Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
Diffstat (limited to 'src/vnet/lawful-intercept')
0 files changed, 0 insertions, 0 deletions