Commit e05c4ad3ed874ee4f5e2c969e55d318ec654332c
Committed by
David S. Miller
1 parent
814fd609fa
Exists in
master
and in
6 other branches
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: Zheng Yan <zheng.z.yan@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
net/ipv4/igmp.c
net/ipv6/mcast.c
... | ... | @@ -1059,7 +1059,7 @@ |
1059 | 1059 | break; |
1060 | 1060 | for (i=0; i<nsrcs; i++) { |
1061 | 1061 | /* skip inactive filters */ |
1062 | - if (pmc->mca_sfcount[MCAST_INCLUDE] || | |
1062 | + if (psf->sf_count[MCAST_INCLUDE] || | |
1063 | 1063 | pmc->mca_sfcount[MCAST_EXCLUDE] != |
1064 | 1064 | psf->sf_count[MCAST_EXCLUDE]) |
1065 | 1065 | continue; |