Commit e05c4ad3 authored by Yan, Zheng's avatar Yan, Zheng Committed by David S. Miller

mcast: Fix source address selection for multicast listener report

Should check use count of include mode filter instead of total number
of include mode filters.
Signed-off-by: default avatarZheng Yan <zheng.z.yan@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 814fd609
...@@ -767,7 +767,7 @@ static int igmp_xmarksources(struct ip_mc_list *pmc, int nsrcs, __be32 *srcs) ...@@ -767,7 +767,7 @@ static int igmp_xmarksources(struct ip_mc_list *pmc, int nsrcs, __be32 *srcs)
break; break;
for (i=0; i<nsrcs; i++) { for (i=0; i<nsrcs; i++) {
/* skip inactive filters */ /* skip inactive filters */
if (pmc->sfcount[MCAST_INCLUDE] || if (psf->sf_count[MCAST_INCLUDE] ||
pmc->sfcount[MCAST_EXCLUDE] != pmc->sfcount[MCAST_EXCLUDE] !=
psf->sf_count[MCAST_EXCLUDE]) psf->sf_count[MCAST_EXCLUDE])
continue; continue;
......
...@@ -1059,7 +1059,7 @@ static int mld_xmarksources(struct ifmcaddr6 *pmc, int nsrcs, ...@@ -1059,7 +1059,7 @@ static int mld_xmarksources(struct ifmcaddr6 *pmc, int nsrcs,
break; break;
for (i=0; i<nsrcs; i++) { for (i=0; i<nsrcs; i++) {
/* skip inactive filters */ /* skip inactive filters */
if (pmc->mca_sfcount[MCAST_INCLUDE] || if (psf->sf_count[MCAST_INCLUDE] ||
pmc->mca_sfcount[MCAST_EXCLUDE] != pmc->mca_sfcount[MCAST_EXCLUDE] !=
psf->sf_count[MCAST_EXCLUDE]) psf->sf_count[MCAST_EXCLUDE])
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment