]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_route.c
bgpd: Fix aggregated routes are withdrawn abnormally.
authorliuze03 <liuze03@baidu.com>
Wed, 7 Dec 2022 04:22:43 +0000 (12:22 +0800)
committerliuze03 <liuze03@baidu.com>
Wed, 14 Dec 2022 03:40:24 +0000 (11:40 +0800)
commit704e189e594418571463c80a3efcc2c1020adcf4
treea7390dac08da4007eb47e523caa3af8345f26870
parent0fce20b8086bd06647b516af1ce614091a516086
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>
bgpd/bgp_route.c