Lines Matching refs:psl
2316 struct ip_sf_socklist *psl; in ip_mc_source() local
2361 psl = rtnl_dereference(pmc->sflist); in ip_mc_source()
2363 if (!psl) in ip_mc_source()
2366 for (i = 0; i < psl->sl_count; i++) { in ip_mc_source()
2367 rv = memcmp(&psl->sl_addr[i], &mreqs->imr_sourceaddr, in ip_mc_source()
2376 if (psl->sl_count == 1 && omode == MCAST_INCLUDE) { in ip_mc_source()
2385 for (j = i+1; j < psl->sl_count; j++) in ip_mc_source()
2386 psl->sl_addr[j-1] = psl->sl_addr[j]; in ip_mc_source()
2387 psl->sl_count--; in ip_mc_source()
2393 if (psl && psl->sl_count >= READ_ONCE(net->ipv4.sysctl_igmp_max_msf)) { in ip_mc_source()
2397 if (!psl || psl->sl_count == psl->sl_max) { in ip_mc_source()
2401 if (psl) in ip_mc_source()
2402 count += psl->sl_max; in ip_mc_source()
2411 if (psl) { in ip_mc_source()
2412 for (i = 0; i < psl->sl_count; i++) in ip_mc_source()
2413 newpsl->sl_addr[i] = psl->sl_addr[i]; in ip_mc_source()
2415 atomic_sub(struct_size(psl, sl_addr, psl->sl_max), in ip_mc_source()
2419 if (psl) in ip_mc_source()
2420 kfree_rcu(psl, rcu); in ip_mc_source()
2421 psl = newpsl; in ip_mc_source()
2424 for (i = 0; i < psl->sl_count; i++) { in ip_mc_source()
2425 rv = memcmp(&psl->sl_addr[i], &mreqs->imr_sourceaddr, in ip_mc_source()
2432 for (j = psl->sl_count-1; j >= i; j--) in ip_mc_source()
2433 psl->sl_addr[j+1] = psl->sl_addr[j]; in ip_mc_source()
2434 psl->sl_addr[i] = mreqs->imr_sourceaddr; in ip_mc_source()
2435 psl->sl_count++; in ip_mc_source()
2454 struct ip_sf_socklist *newpsl, *psl; in ip_mc_msfilter() local
2515 psl = rtnl_dereference(pmc->sflist); in ip_mc_msfilter()
2516 if (psl) { in ip_mc_msfilter()
2518 psl->sl_count, psl->sl_addr, 0); in ip_mc_msfilter()
2520 atomic_sub(struct_size(psl, sl_addr, psl->sl_max), in ip_mc_msfilter()
2527 if (psl) in ip_mc_msfilter()
2528 kfree_rcu(psl, rcu); in ip_mc_msfilter()
2545 struct ip_sf_socklist *psl; in ip_mc_msfget() local
2572 psl = rtnl_dereference(pmc->sflist); in ip_mc_msfget()
2573 if (!psl) { in ip_mc_msfget()
2576 count = psl->sl_count; in ip_mc_msfget()
2579 len = flex_array_size(psl, sl_addr, copycount); in ip_mc_msfget()
2589 psl->sl_addr, len)) in ip_mc_msfget()
2604 struct ip_sf_socklist *psl; in ip_mc_gsfget() local
2623 psl = rtnl_dereference(pmc->sflist); in ip_mc_gsfget()
2624 count = psl ? psl->sl_count : 0; in ip_mc_gsfget()
2633 psin->sin_addr.s_addr = psl->sl_addr[i]; in ip_mc_gsfget()
2650 struct ip_sf_socklist *psl; in ip_mc_sf_allow() local
2668 psl = rcu_dereference(pmc->sflist); in ip_mc_sf_allow()
2670 if (!psl) in ip_mc_sf_allow()
2673 for (i = 0; i < psl->sl_count; i++) { in ip_mc_sf_allow()
2674 if (psl->sl_addr[i] == rmt_addr) in ip_mc_sf_allow()
2678 if (pmc->sfmode == MCAST_INCLUDE && i >= psl->sl_count) in ip_mc_sf_allow()
2680 if (pmc->sfmode == MCAST_EXCLUDE && i < psl->sl_count) in ip_mc_sf_allow()