Lines Matching refs:psl
366 struct ip6_sf_socklist *psl; in ip6_mc_source() local
413 psl = pmc->sflist; in ip6_mc_source()
415 if (!psl) in ip6_mc_source()
418 for (i=0; i<psl->sl_count; i++) { in ip6_mc_source()
419 rv = memcmp(&psl->sl_addr[i], source, in ip6_mc_source()
428 if (psl->sl_count == 1 && omode == MCAST_INCLUDE) { in ip6_mc_source()
436 for (j=i+1; j<psl->sl_count; j++) in ip6_mc_source()
437 psl->sl_addr[j-1] = psl->sl_addr[j]; in ip6_mc_source()
438 psl->sl_count--; in ip6_mc_source()
444 if (psl && psl->sl_count >= sysctl_mld_max_msf) { in ip6_mc_source()
448 if (!psl || psl->sl_count == psl->sl_max) { in ip6_mc_source()
452 if (psl) in ip6_mc_source()
453 count += psl->sl_max; in ip6_mc_source()
461 if (psl) { in ip6_mc_source()
462 for (i=0; i<psl->sl_count; i++) in ip6_mc_source()
463 newpsl->sl_addr[i] = psl->sl_addr[i]; in ip6_mc_source()
464 sock_kfree_s(sk, psl, IP6_SFLSIZE(psl->sl_max)); in ip6_mc_source()
466 pmc->sflist = psl = newpsl; in ip6_mc_source()
469 for (i=0; i<psl->sl_count; i++) { in ip6_mc_source()
470 rv = memcmp(&psl->sl_addr[i], source, sizeof(struct in6_addr)); in ip6_mc_source()
476 for (j=psl->sl_count-1; j>=i; j--) in ip6_mc_source()
477 psl->sl_addr[j+1] = psl->sl_addr[j]; in ip6_mc_source()
478 psl->sl_addr[i] = *source; in ip6_mc_source()
479 psl->sl_count++; in ip6_mc_source()
502 struct ip6_sf_socklist *newpsl, *psl; in ip6_mc_msfilter() local
565 psl = pmc->sflist; in ip6_mc_msfilter()
566 if (psl) { in ip6_mc_msfilter()
568 psl->sl_count, psl->sl_addr, 0); in ip6_mc_msfilter()
569 sock_kfree_s(sk, psl, IP6_SFLSIZE(psl->sl_max)); in ip6_mc_msfilter()
595 struct ip6_sf_socklist *psl; in ip6_mc_msfget() local
626 psl = pmc->sflist; in ip6_mc_msfget()
627 count = psl ? psl->sl_count : 0; in ip6_mc_msfget()
649 psin6->sin6_addr = psl->sl_addr[i]; in ip6_mc_msfget()
666 struct ip6_sf_socklist *psl; in inet6_mc_check() local
679 psl = mc->sflist; in inet6_mc_check()
680 if (!psl) { in inet6_mc_check()
685 for (i=0; i<psl->sl_count; i++) { in inet6_mc_check()
686 if (ipv6_addr_equal(&psl->sl_addr[i], src_addr)) in inet6_mc_check()
689 if (mc->sfmode == MCAST_INCLUDE && i >= psl->sl_count) in inet6_mc_check()
691 if (mc->sfmode == MCAST_EXCLUDE && i < psl->sl_count) in inet6_mc_check()