diff options
author | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-12 21:16:53 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-12 21:16:53 +0200 |
commit | c171d6d8c9a607d0f3525b515e75c3fc1b91577a (patch) | |
tree | 6e9e79d812233ac5943896c813a79a7510b79382 /pimd/pim_static.c | |
parent | pimd: Refactor 'struct static_route' to use channel_oil (diff) | |
download | frr-c171d6d8c9a607d0f3525b515e75c3fc1b91577a.tar.xz frr-c171d6d8c9a607d0f3525b515e75c3fc1b91577a.zip |
pimd: Refactor pim_mroute_add and _del
The struct mfcctl should not be passed around. Pass around
the channel oil instead.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_static.c')
-rw-r--r-- | pimd/pim_static.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_static.c b/pimd/pim_static.c index 84b026be1..1931f1ee6 100644 --- a/pimd/pim_static.c +++ b/pimd/pim_static.c @@ -176,7 +176,7 @@ int pim_static_add(struct interface *iif, struct interface *oif, struct in_addr listnode_add(qpim_static_route_list, s_route); } - if (pim_mroute_add(&s_route->c_oil.oil)) + if (pim_mroute_add(&s_route->c_oil)) { char gifaddr_str[100]; char sifaddr_str[100]; @@ -251,7 +251,7 @@ int pim_static_del(struct interface *iif, struct interface *oif, struct in_addr /* If there are no more outputs then delete the whole route, otherwise set the route with the new outputs */ if (s_route->c_oil.oil_ref_count <= 0 ? - pim_mroute_del(&s_route->c_oil.oil) : pim_mroute_add(&s_route->c_oil.oil)) { + pim_mroute_del(&s_route->c_oil) : pim_mroute_add(&s_route->c_oil)) { char gifaddr_str[100]; char sifaddr_str[100]; pim_inet4_dump("<ifaddr?>", group, gifaddr_str, sizeof(gifaddr_str)); |