]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_upstream.c
pimd: Carefully Reconstruct FHR state when interface bounces
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 10 Mar 2017 15:26:00 +0000 (10:26 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Mar 2017 22:58:01 +0000 (18:58 -0400)
commite711cd3cece039d91a59834e6a9396f878b99c56
tree34bb027ee1e19bac398d6698df837c8517621691
parent2f89147c6b521f5c45c2afaf555d298ee2a5e1ef
pimd: Carefully Reconstruct FHR state when interface bounces

When an interface bounces and we receive a packet before
pim has a chance to fully bring the 'struct pim_usptream'
back up correctly, first check to see if we already have
an associated data structure before creating it again.

This removes a case where both the c_oil and up ref counts
were being incremented and never removed properly.

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