Lines Matching refs:psl

1721 	struct ip_sf_socklist *psl;  in ip_mc_source()  local
1758 psl = pmc->sflist; in ip_mc_source()
1760 if (!psl) in ip_mc_source()
1763 for (i=0; i<psl->sl_count; i++) { in ip_mc_source()
1764 rv = memcmp(&psl->sl_addr[i], &mreqs->imr_sourceaddr, in ip_mc_source()
1776 for (j=i+1; j<psl->sl_count; j++) in ip_mc_source()
1777 psl->sl_addr[j-1] = psl->sl_addr[j]; in ip_mc_source()
1778 psl->sl_count--; in ip_mc_source()
1784 if (psl && psl->sl_count >= sysctl_igmp_max_msf) { in ip_mc_source()
1788 if (!psl || psl->sl_count == psl->sl_max) { in ip_mc_source()
1792 if (psl) in ip_mc_source()
1793 count += psl->sl_max; in ip_mc_source()
1802 if (psl) { in ip_mc_source()
1803 for (i=0; i<psl->sl_count; i++) in ip_mc_source()
1804 newpsl->sl_addr[i] = psl->sl_addr[i]; in ip_mc_source()
1805 sock_kfree_s(sk, psl, IP_SFLSIZE(psl->sl_max)); in ip_mc_source()
1807 pmc->sflist = psl = newpsl; in ip_mc_source()
1810 for (i=0; i<psl->sl_count; i++) { in ip_mc_source()
1811 rv = memcmp(&psl->sl_addr[i], &mreqs->imr_sourceaddr, in ip_mc_source()
1818 for (j=psl->sl_count-1; j>=i; j--) in ip_mc_source()
1819 psl->sl_addr[j+1] = psl->sl_addr[j]; in ip_mc_source()
1820 psl->sl_addr[i] = mreqs->imr_sourceaddr; in ip_mc_source()
1821 psl->sl_count++; in ip_mc_source()
1839 struct ip_sf_socklist *newpsl, *psl; in ip_mc_msfilter() local
1888 psl = pmc->sflist; in ip_mc_msfilter()
1889 if (psl) { in ip_mc_msfilter()
1891 psl->sl_count, psl->sl_addr, 0); in ip_mc_msfilter()
1892 sock_kfree_s(sk, psl, IP_SFLSIZE(psl->sl_max)); in ip_mc_msfilter()
1912 struct ip_sf_socklist *psl; in ip_mc_msfget() local
1938 psl = pmc->sflist; in ip_mc_msfget()
1940 if (!psl) { in ip_mc_msfget()
1944 count = psl->sl_count; in ip_mc_msfget()
1947 len = copycount * sizeof(psl->sl_addr[0]); in ip_mc_msfget()
1954 copy_to_user((void *)&optval->imsf_slist[0], psl->sl_addr, len)) in ip_mc_msfget()
1970 struct ip_sf_socklist *psl; in ip_mc_gsfget() local
1991 psl = pmc->sflist; in ip_mc_gsfget()
1993 count = psl ? psl->sl_count : 0; in ip_mc_gsfget()
2007 psin->sin_addr.s_addr = psl->sl_addr[i]; in ip_mc_gsfget()
2024 struct ip_sf_socklist *psl; in ip_mc_sf_allow() local
2037 psl = pmc->sflist; in ip_mc_sf_allow()
2038 if (!psl) in ip_mc_sf_allow()
2041 for (i=0; i<psl->sl_count; i++) { in ip_mc_sf_allow()
2042 if (psl->sl_addr[i] == rmt_addr) in ip_mc_sf_allow()
2045 if (pmc->sfmode == MCAST_INCLUDE && i >= psl->sl_count) in ip_mc_sf_allow()
2047 if (pmc->sfmode == MCAST_EXCLUDE && i < psl->sl_count) in ip_mc_sf_allow()