Lines Matching refs:sfmode
164 static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
279 if (pmc->sfmode == MCAST_INCLUDE) in is_in()
305 return (pmc->sfmode == MCAST_INCLUDE) ^ sdeleted; in is_in()
307 if (pmc->sfmode == MCAST_INCLUDE) in is_in()
516 if (((gdeleted && pmc->sfmode == MCAST_EXCLUDE) || in add_grec()
663 if (pmc->sfmode == MCAST_INCLUDE) { in igmpv3_send_cr()
670 if (pmc->sfmode == MCAST_EXCLUDE) { in igmpv3_send_cr()
707 if (pmc->sfmode == MCAST_EXCLUDE) in igmpv3_send_cr()
892 if (pmc->sfmode == MCAST_EXCLUDE) in igmp_marksources()
1193 pmc->sfmode = im->sfmode; in igmpv3_add_delrec()
1194 if (pmc->sfmode == MCAST_INCLUDE) { in igmpv3_add_delrec()
1239 if (im->sfmode == MCAST_INCLUDE) { in igmpv3_del_delrec()
1367 if (im->sfmode == MCAST_EXCLUDE) in igmp_group_added()
1458 im->sfmode = mode; in ____ip_mc_inc_group()
1859 static int ip_mc_del1_src(struct ip_mc_list *pmc, int sfmode, in ip_mc_del1_src() argument
1871 if (!psf || psf->sf_count[sfmode] == 0) { in ip_mc_del1_src()
1875 psf->sf_count[sfmode]--; in ip_mc_del1_src()
1876 if (psf->sf_count[sfmode] == 0) { in ip_mc_del1_src()
1908 static int ip_mc_del_src(struct in_device *in_dev, __be32 *pmca, int sfmode, in ip_mc_del_src() argument
1934 if (!pmc->sfcount[sfmode]) in ip_mc_del_src()
1936 pmc->sfcount[sfmode]--; in ip_mc_del_src()
1940 int rv = ip_mc_del1_src(pmc, sfmode, &psfsrc[i]); in ip_mc_del_src()
1946 if (pmc->sfmode == MCAST_EXCLUDE && in ip_mc_del_src()
1955 pmc->sfmode = MCAST_INCLUDE; in ip_mc_del_src()
1974 static int ip_mc_add1_src(struct ip_mc_list *pmc, int sfmode, in ip_mc_add1_src() argument
1995 psf->sf_count[sfmode]++; in ip_mc_add1_src()
1996 if (psf->sf_count[sfmode] == 1) { in ip_mc_add1_src()
2080 static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode, in ip_mc_add_src() argument
2105 isexclude = pmc->sfmode == MCAST_EXCLUDE; in ip_mc_add_src()
2107 pmc->sfcount[sfmode]++; in ip_mc_add_src()
2110 err = ip_mc_add1_src(pmc, sfmode, &psfsrc[i]); in ip_mc_add_src()
2118 pmc->sfcount[sfmode]--; in ip_mc_add_src()
2120 (void) ip_mc_del1_src(pmc, sfmode, &psfsrc[j]); in ip_mc_add_src()
2130 pmc->sfmode = MCAST_EXCLUDE; in ip_mc_add_src()
2132 pmc->sfmode = MCAST_INCLUDE; in ip_mc_add_src()
2158 pmc->sfmode = MCAST_EXCLUDE; in ip_mc_clear_src()
2211 iml->sfmode = mode; in __ip_mc_join_group()
2244 iml->sfmode, 0, NULL, 0); in ip_mc_leave_src()
2247 iml->sfmode, psf->sl_count, psf->sl_addr, 0); in ip_mc_leave_src()
2345 if (pmc->sfmode != omode) { in ip_mc_source()
2349 } else if (pmc->sfmode != omode) { in ip_mc_source()
2352 ip_mc_del_src(in_dev, &mreqs->imr_multiaddr, pmc->sfmode, 0, in ip_mc_source()
2354 pmc->sfmode = omode; in ip_mc_source()
2513 (void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode, in ip_mc_msfilter()
2519 (void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode, in ip_mc_msfilter()
2525 pmc->sfmode = msf->imsf_fmode; in ip_mc_msfilter()
2567 msf->imsf_fmode = pmc->sfmode; in ip_mc_msfget()
2618 gsf->gf_fmode = pmc->sfmode; in ip_mc_gsfget()
2665 ret = (pmc->sfmode == MCAST_EXCLUDE); in ip_mc_sf_allow()
2674 if (pmc->sfmode == MCAST_INCLUDE && i >= psl->sl_count) in ip_mc_sf_allow()
2676 if (pmc->sfmode == MCAST_EXCLUDE && i < psl->sl_count) in ip_mc_sf_allow()