]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix aggregated routes are withdrawn abnormally.
authorliuze03 <liuze03@baidu.com>
Wed, 7 Dec 2022 04:22:43 +0000 (12:22 +0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Wed, 4 Jan 2023 20:51:17 +0000 (20:51 +0000)
commit2865946b03feada837020d6dcbca06f28581efc8
tree7c79d7fe8aa93da05b94c5ba9cc6bb1e61f2ce22
parent9594783741cc342d7612024bce57feb75813012f
bgpd: Fix aggregated routes are withdrawn abnormally.

    The withdraw message and announcement message of a prefix are received continuously within 50ms, which may lead to abnormal aggregation route reference count.
    Steps to reproduce:
    --------------------------
    step1:
    local config aggregate route 111.0.0.0/24
    received route:111.0.0.1/32 111.0.0.02/32
    ref_count:2

    step2:
    peer withdraw 111.0.0.1/32 and network 111.0.0.1/32 in 50ms
    received route:111.0.0.1/32 111.0.0.02/32
    ref_count:1

    step3:
    peer withdraw 111.0.0.1/32
    received route:111.0.0.02/32
    ref_count:0
    aggregate route will be withdrawn abnormally

Signed-off-by: liuze03 <liuze03@baidu.com>
(cherry picked from commit 704e189e594418571463c80a3efcc2c1020adcf4)
bgpd/bgp_route.c