]> git.proxmox.com Git - mirror_frr.git/commit
pimd: Allow multiple secondary addresses to work
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 10 Aug 2020 14:32:17 +0000 (10:32 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 10 Aug 2020 14:32:17 +0000 (10:32 -0400)
commitddba0a04a99f3c9450bec6c20032aa5ddc73bee6
tree95544851ecd26e05e058a9be7cb4f144a59f7d6f
parent84a98cedfb3efac93aef1058730bf1e6ca585fcc
pimd: Allow multiple secondary addresses to work

Suppose you have more than 2 addresses on a pim interface:
lo              up      default         10.255.0.1/32
                                        10.255.0.101/32
                                        10.255.0.254/32

A `show ip pim int lo` gives us this:

eva# show ip pim interface lo
Interface  : lo
State      : up
Address    : 10.255.0.1 (primary)
             10.255.0.101/32

When we go look at the code that pulls secondary addresses in
we are using a prefix_cmp to know if we know about a secondary already
but were expecting true values instead of -1/0/1 being returned.

Modify code so that pim sees all secondary addresses

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_iface.c