Message ID | CAAM7YAku7DgV_c7joAHCx5fP8Dea3Y_VaxbokdTR3m2ADz1qhg@mail.gmail.com |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
On Wed, Aug 24, 2011 at 3:55 PM, Yan, Zheng <yanzheng@21cn.com> wrote: > Should check use count of include mode filter instead of total number > of include mode filters. > > Signed-off-by: Zheng Yan <zheng.z.yan@intel.com> > --- > diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c > index 283c0a2..d577199 100644 > --- a/net/ipv4/igmp.c > +++ b/net/ipv4/igmp.c > @@ -767,7 +767,7 @@ static int igmp_xmarksources(struct ip_mc_list > *pmc, int nsrcs, __be32 *srcs) > break; > for (i=0; i<nsrcs; i++) { > /* skip inactive filters */ > - if (pmc->sfcount[MCAST_INCLUDE] || > + if (psf->sf_count[MCAST_INCLUDE] || > pmc->sfcount[MCAST_EXCLUDE] != > psf->sf_count[MCAST_EXCLUDE]) > continue; > diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c > index 3e6ebcd..ee7839f 100644 > --- a/net/ipv6/mcast.c > +++ b/net/ipv6/mcast.c > @@ -1059,7 +1059,7 @@ static int mld_xmarksources(struct ifmcaddr6 > *pmc, int nsrcs, > break; > for (i=0; i<nsrcs; i++) { > /* skip inactive filters */ > - if (pmc->mca_sfcount[MCAST_INCLUDE] || > + if (psf->sf_count[MCAST_INCLUDE] || > pmc->mca_sfcount[MCAST_EXCLUDE] != > psf->sf_count[MCAST_EXCLUDE]) > continue; > Sorry. this one is malformed, please ignore it. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 283c0a2..d577199 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -767,7 +767,7 @@ static int igmp_xmarksources(struct ip_mc_list *pmc, int nsrcs, __be32 *srcs) break; for (i=0; i<nsrcs; i++) { /* skip inactive filters */ - if (pmc->sfcount[MCAST_INCLUDE] || + if (psf->sf_count[MCAST_INCLUDE] || pmc->sfcount[MCAST_EXCLUDE] != psf->sf_count[MCAST_EXCLUDE]) continue; diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index 3e6ebcd..ee7839f 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c @@ -1059,7 +1059,7 @@ static int mld_xmarksources(struct ifmcaddr6 *pmc, int nsrcs, break; for (i=0; i<nsrcs; i++) { /* skip inactive filters */ - if (pmc->mca_sfcount[MCAST_INCLUDE] || + if (psf->sf_count[MCAST_INCLUDE] || pmc->mca_sfcount[MCAST_EXCLUDE] != psf->sf_count[MCAST_EXCLUDE])
Should check use count of include mode filter instead of total number of include mode filters. Signed-off-by: Zheng Yan <zheng.z.yan@intel.com> --- continue; -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html