Lines Matching defs:psl
314 struct ip6_sf_socklist *psl;
364 psl = pmc->sflist;
366 if (!psl)
369 for (i=0; i<psl->sl_count; i++) {
370 rv = memcmp(&psl->sl_addr[i], source,
379 if (psl->sl_count == 1 && omode == MCAST_INCLUDE) {
387 for (j=i+1; j<psl->sl_count; j++)
388 psl->sl_addr[j-1] = psl->sl_addr[j];
389 psl->sl_count--;
395 if (psl && psl->sl_count >= sysctl_mld_max_msf) {
399 if (!psl || psl->sl_count == psl->sl_max) {
403 if (psl)
404 count += psl->sl_max;
412 if (psl) {
413 for (i=0; i<psl->sl_count; i++)
414 newpsl->sl_addr[i] = psl->sl_addr[i];
415 sock_kfree_s(sk, psl, IP6_SFLSIZE(psl->sl_max));
417 pmc->sflist = psl = newpsl;
420 for (i=0; i<psl->sl_count; i++) {
421 rv = memcmp(&psl->sl_addr[i], source, sizeof(struct in6_addr));
427 for (j=psl->sl_count-1; j>=i; j--)
428 psl->sl_addr[j+1] = psl->sl_addr[j];
429 psl->sl_addr[i] = *source;
430 psl->sl_count++;
452 struct ip6_sf_socklist *newpsl, *psl;
518 psl = pmc->sflist;
519 if (psl) {
521 psl->sl_count, psl->sl_addr, 0);
522 sock_kfree_s(sk, psl, IP6_SFLSIZE(psl->sl_max));
547 struct ip6_sf_socklist *psl;
580 psl = pmc->sflist;
581 count = psl ? psl->sl_count : 0;
591 /* changes to psl require the socket lock, a read lock on
602 psin6->sin6_addr = psl->sl_addr[i];
618 struct ip6_sf_socklist *psl;
631 psl = mc->sflist;
632 if (!psl) {
637 for (i=0; i<psl->sl_count; i++) {
638 if (ipv6_addr_equal(&psl->sl_addr[i], src_addr))
641 if (mc->sfmode == MCAST_INCLUDE && i >= psl->sl_count)
643 if (mc->sfmode == MCAST_EXCLUDE && i < psl->sl_count)