summaryrefslogtreecommitdiffstats
path: root/pimd/pim_neighbor.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-04-01 18:31:28 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-04-02 14:20:02 +0200
commitc9cd7fbc3f4e0c7722897db71220ae997de1975f (patch)
tree12df5a07b3bcc7f9ec2d3b668314d995a0d18250 /pimd/pim_neighbor.c
parentpimd: Remove pim_resolve_upstream_nh (diff)
downloadfrr-c9cd7fbc3f4e0c7722897db71220ae997de1975f.tar.xz
frr-c9cd7fbc3f4e0c7722897db71220ae997de1975f.zip
pimd: Limit lookup of neighbor since we know we have one
When a new pim neighbor comes up, we need to go through and mark nexthops that we have received from zebra for reachability tracking so we can refigure stuff. If we pass in the new neighbor we can limit the search to those nexthops out the interface that the new neighbor has come up. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_neighbor.c')
-rw-r--r--pimd/pim_neighbor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_neighbor.c b/pimd/pim_neighbor.c
index 436f2dec2..a63b09fc1 100644
--- a/pimd/pim_neighbor.c
+++ b/pimd/pim_neighbor.c
@@ -540,7 +540,7 @@ pim_neighbor_add(struct interface *ifp, struct in_addr source_addr,
Upon PIM neighbor UP, iterate all RPs and update
nexthop cache with this neighbor.
*/
- pim_resolve_rp_nh(pim_ifp->pim);
+ pim_resolve_rp_nh(pim_ifp->pim, neigh);
pim_rp_setup(pim_ifp->pim);