diff options
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_msg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/pim_msg.c b/pimd/pim_msg.c index 698af4cff..5d4ddf14e 100644 --- a/pimd/pim_msg.c +++ b/pimd/pim_msg.c @@ -36,6 +36,7 @@ #include "pim_rpf.h" #include "pim_register.h" #include "pim_jp_agg.h" +#include "pim_oil.h" void pim_msg_build_header(uint8_t *pim_msg, size_t pim_msg_size, uint8_t pim_msg_type) @@ -198,8 +199,8 @@ size_t pim_msg_build_jp_groups(struct pim_jp_groups *grp, grp->prunes++; if (source->up->sg.src.s_addr == INADDR_ANY) { - struct pim_rpf *rpf = - pim_rp_g(pimg, source->up->sg.grp); + struct pim_instance *pim = source->up->channel_oil->pim; + struct pim_rpf *rpf = pim_rp_g(pim, source->up->sg.grp); bits = PIM_ENCODE_SPARSE_BIT | PIM_ENCODE_WC_BIT | PIM_ENCODE_RPT_BIT; stosend = rpf->rpf_addr.u.prefix4; |