• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/ipv6/

Lines Matching refs:psf

738 		struct ip6_sf_list *psf;
743 for (psf=pmc->mca_sources; psf; psf=psf->sf_next)
744 psf->sf_crcount = pmc->mca_crcount;
757 struct ip6_sf_list *psf, *psf_next;
775 for (psf=pmc->mca_tomb; psf; psf=psf_next) {
776 psf_next = psf->sf_next;
777 kfree(psf);
803 struct ip6_sf_list *psf, *psf_next;
806 psf = pmc->mca_tomb;
809 for (; psf; psf=psf_next) {
810 psf_next = psf->sf_next;
811 kfree(psf);
982 struct ip6_sf_list *psf;
985 for (psf=mc->mca_sources;psf;psf=psf->sf_next) {
986 if (ipv6_addr_equal(&psf->sf_addr, src_addr))
989 if (psf)
990 rv = psf->sf_count[MCAST_INCLUDE] ||
991 psf->sf_count[MCAST_EXCLUDE] !=
1056 struct ip6_sf_list *psf;
1060 for (psf=pmc->mca_sources; psf; psf=psf->sf_next) {
1067 psf->sf_count[MCAST_EXCLUDE])
1069 if (ipv6_addr_equal(&srcs[i], &psf->sf_addr)) {
1084 struct ip6_sf_list *psf;
1093 for (psf=pmc->mca_sources; psf; psf=psf->sf_next) {
1097 if (ipv6_addr_equal(&srcs[i], &psf->sf_addr)) {
1098 psf->sf_gsresp = 1;
1283 static int is_in(struct ifmcaddr6 *pmc, struct ip6_sf_list *psf, int type,
1291 if (!((pmc->mca_flags & MAF_GSQUERY) && !psf->sf_gsresp)) {
1297 if (psf->sf_count[MCAST_INCLUDE])
1300 psf->sf_count[MCAST_EXCLUDE];
1306 return psf->sf_count[MCAST_INCLUDE] != 0;
1311 psf->sf_count[MCAST_INCLUDE])
1314 psf->sf_count[MCAST_EXCLUDE];
1316 if (gdeleted || !psf->sf_crcount)
1321 return gdeleted || (psf->sf_crcount && sdeleted);
1322 return psf->sf_crcount && !gdeleted && !sdeleted;
1330 struct ip6_sf_list *psf;
1333 for (psf=pmc->mca_sources; psf; psf=psf->sf_next) {
1334 if (!is_in(pmc, psf, type, gdeleted, sdeleted))
1486 struct ip6_sf_list *psf, *psf_next, *psf_prev, **psf_list;
1517 for (psf=*psf_list; psf; psf=psf_next) {
1520 psf_next = psf->sf_next;
1522 if (!is_in(pmc, psf, type, gdeleted, sdeleted)) {
1523 psf_prev = psf;
1529 psf->sf_gsresp = 0;
1550 *psrc = psf->sf_addr;
1553 type == MLD2_BLOCK_OLD_SOURCES) && psf->sf_crcount) {
1554 psf->sf_crcount--;
1555 if ((sdeleted || gdeleted) && psf->sf_crcount == 0) {
1557 psf_prev->sf_next = psf->sf_next;
1559 *psf_list = psf->sf_next;
1560 kfree(psf);
1564 psf_prev = psf;
1626 struct ip6_sf_list *psf_prev, *psf_next, *psf;
1629 for (psf=*ppsf; psf; psf = psf_next) {
1630 psf_next = psf->sf_next;
1631 if (psf->sf_crcount == 0) {
1633 psf_prev->sf_next = psf->sf_next;
1635 *ppsf = psf->sf_next;
1636 kfree(psf);
1638 psf_prev = psf;
1818 struct ip6_sf_list *psf, *psf_prev;
1822 for (psf=pmc->mca_sources; psf; psf=psf->sf_next) {
1823 if (ipv6_addr_equal(&psf->sf_addr, psfsrc))
1825 psf_prev = psf;
1827 if (!psf || psf->sf_count[sfmode] == 0) {
1831 psf->sf_count[sfmode]--;
1832 if (!psf->sf_count[MCAST_INCLUDE] && !psf->sf_count[MCAST_EXCLUDE]) {
1837 psf_prev->sf_next = psf->sf_next;
1839 pmc->mca_sources = psf->sf_next;
1840 if (psf->sf_oldin && !(pmc->mca_flags & MAF_NOREPORT) &&
1842 psf->sf_crcount = idev->mc_qrv;
1843 psf->sf_next = pmc->mca_tomb;
1844 pmc->mca_tomb = psf;
1847 kfree(psf);
1893 struct ip6_sf_list *psf;
1899 for (psf=pmc->mca_sources; psf; psf = psf->sf_next)
1900 psf->sf_crcount = 0;
1915 struct ip6_sf_list *psf, *psf_prev;
1918 for (psf=pmc->mca_sources; psf; psf=psf->sf_next) {
1919 if (ipv6_addr_equal(&psf->sf_addr, psfsrc))
1921 psf_prev = psf;
1923 if (!psf) {
1924 psf = kzalloc(sizeof(*psf), GFP_ATOMIC);
1925 if (!psf)
1928 psf->sf_addr = *psfsrc;
1930 psf_prev->sf_next = psf;
1932 pmc->mca_sources = psf;
1934 psf->sf_count[sfmode]++;
1940 struct ip6_sf_list *psf;
1943 for (psf=pmc->mca_sources; psf; psf=psf->sf_next)
1945 psf->sf_oldin = mca_xcount ==
1946 psf->sf_count[MCAST_EXCLUDE] &&
1947 !psf->sf_count[MCAST_INCLUDE];
1949 psf->sf_oldin = psf->sf_count[MCAST_INCLUDE] != 0;
1954 struct ip6_sf_list *psf, *dpsf;
1960 for (psf=pmc->mca_sources; psf; psf=psf->sf_next) {
1962 new_in = mca_xcount == psf->sf_count[MCAST_EXCLUDE] &&
1963 !psf->sf_count[MCAST_INCLUDE];
1965 new_in = psf->sf_count[MCAST_INCLUDE] != 0;
1967 if (!psf->sf_oldin) {
1973 &psf->sf_addr))
1984 psf->sf_crcount = qrv;
1987 } else if (psf->sf_oldin) {
1988 psf->sf_crcount = 0;
1995 &psf->sf_addr))
2001 *dpsf = *psf;
2056 struct ip6_sf_list *psf;
2067 for (psf=pmc->mca_sources; psf; psf = psf->sf_next)
2068 psf->sf_crcount = 0;
2079 struct ip6_sf_list *psf, *nextpsf;
2081 for (psf=pmc->mca_tomb; psf; psf=nextpsf) {
2082 nextpsf = psf->sf_next;
2083 kfree(psf);
2086 for (psf=pmc->mca_sources; psf; psf=nextpsf) {
2087 nextpsf = psf->sf_next;
2088 kfree(psf);
2456 struct ip6_sf_list *psf = NULL;
2472 psf = im->mca_sources;
2473 if (likely(psf != NULL)) {
2482 return psf;
2485 static struct ip6_sf_list *igmp6_mcf_get_next(struct seq_file *seq, struct ip6_sf_list *psf)
2489 psf = psf->sf_next;
2490 while (!psf) {
2511 psf = state->im->mca_sources;
2514 return psf;
2519 struct ip6_sf_list *psf = igmp6_mcf_get_first(seq);
2520 if (psf)
2521 while (pos && (psf = igmp6_mcf_get_next(seq, psf)) != NULL)
2523 return pos ? NULL : psf;
2535 struct ip6_sf_list *psf;
2537 psf = igmp6_mcf_get_first(seq);
2539 psf = igmp6_mcf_get_next(seq, v);
2541 return psf;
2562 struct ip6_sf_list *psf = (struct ip6_sf_list *)v;
2576 &psf->sf_addr,
2577 psf->sf_count[MCAST_INCLUDE],
2578 psf->sf_count[MCAST_EXCLUDE]);