]> git.proxmox.com Git - mirror_frr.git/commit
pimd: fixup JD macro to use "peer-msdp-sa" check instead of I_am_RP check
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Fri, 15 Nov 2019 20:22:27 +0000 (12:22 -0800)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Fri, 15 Nov 2019 22:16:08 +0000 (14:16 -0800)
commit41a115e4f0eb9ff5847e4b7a268003fdbf321b88
tree9fa2b2c42cdbf1181888495d7d9d849658a882eb
parentc5cdf069600c3a957ca83896b7d10c6dbe37fb93
pimd: fixup JD macro to use "peer-msdp-sa" check instead of I_am_RP check

JD macro is defined by the RFC as -
bool JoinDesired(S,G) {
    return (immediate_olist(S,G) != NULL
        OR (KeepaliveTimer(S,G) is running
        AND inherited_olist(S,G) != NULL))
}

However for MSDP synced SA the KAT will not be running so an exception is
needed. Earlier I had done this by relaxing KAT_run requirements entirely
on the RP. However as that prevents the source from being aged out in some
cases I have made the check more narrow i.e. has to an MSDP peer added
entry.

Ticket: CM-24398

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
pimd/pim_msdp.c
pimd/pim_upstream.c