summaryrefslogtreecommitdiffstats
path: root/pimd/pim_static.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_static.c')
-rw-r--r--pimd/pim_static.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_static.c b/pimd/pim_static.c
index 2d4e2feff..5b3894f1f 100644
--- a/pimd/pim_static.c
+++ b/pimd/pim_static.c
@@ -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];