diff options
Diffstat (limited to 'pimd/pim_pim.c')
| -rw-r--r-- | pimd/pim_pim.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 8840abd888..be5bcee5db 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -667,13 +667,9 @@ static int hello_send(struct interface *ifp, uint16_t holdtime) static int pim_hello_send(struct interface *ifp, uint16_t holdtime) { - struct pim_interface *pim_ifp; - - zassert(ifp); - pim_ifp = ifp->info; - zassert(pim_ifp); + struct pim_interface *pim_ifp = ifp->info; - if (if_is_loopback(ifp)) + if (pim_if_is_loopback(pim_ifp->pim, ifp)) return 0; if (hello_send(ifp, holdtime)) { |
