Lines Matching refs:psl

343 	struct ip6_sf_socklist *psl;  in ip6_mc_source()  local
383 psl = pmc->sflist; in ip6_mc_source()
385 if (!psl) in ip6_mc_source()
388 for (i=0; i<psl->sl_count; i++) { in ip6_mc_source()
389 rv = memcmp(&psl->sl_addr[i], source, in ip6_mc_source()
400 for (j=i+1; j<psl->sl_count; j++) in ip6_mc_source()
401 psl->sl_addr[j-1] = psl->sl_addr[j]; in ip6_mc_source()
402 psl->sl_count--; in ip6_mc_source()
408 if (psl && psl->sl_count >= sysctl_mld_max_msf) { in ip6_mc_source()
412 if (!psl || psl->sl_count == psl->sl_max) { in ip6_mc_source()
416 if (psl) in ip6_mc_source()
417 count += psl->sl_max; in ip6_mc_source()
426 if (psl) { in ip6_mc_source()
427 for (i=0; i<psl->sl_count; i++) in ip6_mc_source()
428 newpsl->sl_addr[i] = psl->sl_addr[i]; in ip6_mc_source()
429 sock_kfree_s(sk, psl, IP6_SFLSIZE(psl->sl_max)); in ip6_mc_source()
431 pmc->sflist = psl = newpsl; in ip6_mc_source()
434 for (i=0; i<psl->sl_count; i++) { in ip6_mc_source()
435 rv = memcmp(&psl->sl_addr[i], source, sizeof(struct in6_addr)); in ip6_mc_source()
441 for (j=psl->sl_count-1; j>=i; j--) in ip6_mc_source()
442 psl->sl_addr[j+1] = psl->sl_addr[j]; in ip6_mc_source()
443 psl->sl_addr[i] = *source; in ip6_mc_source()
444 psl->sl_count++; in ip6_mc_source()
462 struct ip6_sf_socklist *newpsl, *psl; in ip6_mc_msfilter() local
513 psl = pmc->sflist; in ip6_mc_msfilter()
514 if (psl) { in ip6_mc_msfilter()
516 psl->sl_count, psl->sl_addr, 0); in ip6_mc_msfilter()
517 sock_kfree_s(sk, psl, IP6_SFLSIZE(psl->sl_max)); in ip6_mc_msfilter()
538 struct ip6_sf_socklist *psl; in ip6_mc_msfget() local
563 psl = pmc->sflist; in ip6_mc_msfget()
564 count = psl ? psl->sl_count : 0; in ip6_mc_msfget()
582 psin6->sin6_addr = psl->sl_addr[i]; in ip6_mc_msfget()
599 struct ip6_sf_socklist *psl; in inet6_mc_check() local
611 psl = mc->sflist; in inet6_mc_check()
612 if (!psl) { in inet6_mc_check()
617 for (i=0; i<psl->sl_count; i++) { in inet6_mc_check()
618 if (ipv6_addr_cmp(&psl->sl_addr[i], src_addr) == 0) in inet6_mc_check()
621 if (mc->sfmode == MCAST_INCLUDE && i >= psl->sl_count) in inet6_mc_check()
623 if (mc->sfmode == MCAST_EXCLUDE && i < psl->sl_count) in inet6_mc_check()