diff options
Diffstat (limited to 'pimd/pim_hello.c')
| -rw-r--r-- | pimd/pim_hello.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pimd/pim_hello.c b/pimd/pim_hello.c index fe4f10aa6a..833103c27f 100644 --- a/pimd/pim_hello.c +++ b/pimd/pim_hello.c @@ -23,6 +23,7 @@ #include "if.h" #include "pimd.h" +#include "pim_instance.h" #include "pim_pim.h" #include "pim_str.h" #include "pim_tlv.h" @@ -124,6 +125,14 @@ int pim_hello_recv(struct interface *ifp, pim_addr src_addr, uint8_t *tlv_buf, pim_ifp = ifp->info; assert(pim_ifp); + if (pim_ifp->pim_passive_enable) { + if (PIM_DEBUG_PIM_PACKETS) + zlog_debug( + "skip receiving PIM message on passive interface %s", + ifp->name); + return 0; + } + ++pim_ifp->pim_ifstat_hello_recv; /* |
