Merge pull request #12263 from anlancs/fix/pimd-log-bug

pimd: avoid one EC log
This commit is contained in:
mobash-rasool 2022-11-07 12:40:19 +05:30 committed by GitHub
commit ac8aa2f7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -770,7 +770,8 @@ int igmp_mtrace_recv_qry_req(struct gm_sock *igmp, struct ip *ip_hdr,
}
/* 6.2.2 8. If this router is the Rendez-vous Point */
if (pim_rp_i_am_rp(pim, mtracep->grp_addr)) {
if (mtracep->grp_addr.s_addr != INADDR_ANY &&
pim_rp_i_am_rp(pim, mtracep->grp_addr)) {
mtrace_rsp_set_fwd_code(rspp, MTRACE_FWD_CODE_REACHED_RP);
/* 7.7.1. PIM-SM ...RP has not performed source-specific join */
if (rspp->src_mask == MTRACE_SRC_MASK_GROUP)