Lines Matching defs:sfmode
149 static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
238 if (pmc->sfmode == MCAST_INCLUDE)
264 return (pmc->sfmode == MCAST_INCLUDE) ^ sdeleted;
266 if (pmc->sfmode == MCAST_INCLUDE)
584 if (pmc->sfmode == MCAST_INCLUDE) {
591 if (pmc->sfmode == MCAST_EXCLUDE) {
628 if (pmc->sfmode == MCAST_EXCLUDE)
811 if (pmc->sfmode == MCAST_EXCLUDE)
1077 pmc->sfmode = im->sfmode;
1078 if (pmc->sfmode == MCAST_INCLUDE) {
1256 im->sfmode = MCAST_EXCLUDE;
1487 static int ip_mc_del1_src(struct ip_mc_list *pmc, int sfmode,
1499 if (!psf || psf->sf_count[sfmode] == 0) {
1503 psf->sf_count[sfmode]--;
1504 if (psf->sf_count[sfmode] == 0) {
1536 static int ip_mc_del_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
1562 if (!pmc->sfcount[sfmode])
1564 pmc->sfcount[sfmode]--;
1568 int rv = ip_mc_del1_src(pmc, sfmode, &psfsrc[i]);
1574 if (pmc->sfmode == MCAST_EXCLUDE &&
1582 pmc->sfmode = MCAST_INCLUDE;
1602 static int ip_mc_add1_src(struct ip_mc_list *pmc, int sfmode,
1623 psf->sf_count[sfmode]++;
1624 if (psf->sf_count[sfmode] == 1) {
1708 static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
1733 isexclude = pmc->sfmode == MCAST_EXCLUDE;
1735 pmc->sfcount[sfmode]++;
1738 err = ip_mc_add1_src(pmc, sfmode, &psfsrc[i], delta);
1745 pmc->sfcount[sfmode]--;
1747 (void) ip_mc_del1_src(pmc, sfmode, &psfsrc[i]);
1756 pmc->sfmode = MCAST_EXCLUDE;
1758 pmc->sfmode = MCAST_INCLUDE;
1790 pmc->sfmode = MCAST_EXCLUDE;
1841 iml->sfmode = MCAST_EXCLUDE;
1869 iml->sfmode, 0, NULL, 0);
1872 iml->sfmode, psf->sl_count, psf->sl_addr, 0);
1978 if (pmc->sfmode != omode) {
1982 } else if (pmc->sfmode != omode) {
1985 ip_mc_del_src(in_dev, &mreqs->imr_multiaddr, pmc->sfmode, 0,
1987 pmc->sfmode = omode;
2141 (void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode,
2147 (void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode,
2150 pmc->sfmode = msf->imsf_fmode;
2194 msf->imsf_fmode = pmc->sfmode;
2247 gsf->gf_fmode = pmc->sfmode;
2298 ret = (pmc->sfmode == MCAST_EXCLUDE);
2307 if (pmc->sfmode == MCAST_INCLUDE && i >= psl->sl_count)
2309 if (pmc->sfmode == MCAST_EXCLUDE && i < psl->sl_count)