diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-19 01:26:49 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-24 19:51:35 +0200 |
commit | 2e4e8571f0f63509b02d22edc39d998ddba7c8c0 (patch) | |
tree | 0d289e15435012aedcedfd31535407e9df48b6a7 /pimd/pim_static.c | |
parent | pimd: Refactor code to be in better spots (diff) | |
download | frr-2e4e8571f0f63509b02d22edc39d998ddba7c8c0.tar.xz frr-2e4e8571f0f63509b02d22edc39d998ddba7c8c0.zip |
pimd: Fix c_oil->pim set spot
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_static.c')
-rw-r--r-- | pimd/pim_static.c | 3 |
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]; |