pimd: Fix c_oil->pim set spot

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-05-18 19:26:49 -04:00
parent c2cf4b0230
commit 2e4e8571f0

View File

@ -109,7 +109,6 @@ int pim_static_add(struct interface *iif, struct interface *oif,
pim_ifp = iif->info;
pim = pim_ifp->pim;
s_route->c_oil.pim = pim;
for (ALL_LIST_ELEMENTS_RO(qpim_static_route_list, node, s_route)) {
if (s_route->group.s_addr == group.s_addr
@ -193,6 +192,8 @@ int pim_static_add(struct interface *iif, struct interface *oif,
listnode_add(qpim_static_route_list, s_route);
}
s_route->c_oil.pim = pim;
if (pim_mroute_add(&s_route->c_oil, __PRETTY_FUNCTION__)) {
char gifaddr_str[INET_ADDRSTRLEN];
char sifaddr_str[INET_ADDRSTRLEN];