Lines Matching refs:gsf

452 int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf)  in ip6_mc_msfilter()  argument
463 group = &((struct sockaddr_in6 *)&gsf->gf_group)->sin6_addr; in ip6_mc_msfilter()
467 if (gsf->gf_fmode != MCAST_INCLUDE && in ip6_mc_msfilter()
468 gsf->gf_fmode != MCAST_EXCLUDE) in ip6_mc_msfilter()
472 idev = ip6_mc_find_dev_rcu(net, group, gsf->gf_interface); in ip6_mc_msfilter()
481 if (gsf->gf_fmode == MCAST_INCLUDE && gsf->gf_numsrc == 0) { in ip6_mc_msfilter()
487 if (pmc->ifindex != gsf->gf_interface) in ip6_mc_msfilter()
496 if (gsf->gf_numsrc) { in ip6_mc_msfilter()
497 newpsl = sock_kmalloc(sk, IP6_SFLSIZE(gsf->gf_numsrc), in ip6_mc_msfilter()
503 newpsl->sl_max = newpsl->sl_count = gsf->gf_numsrc; in ip6_mc_msfilter()
507 psin6 = (struct sockaddr_in6 *)&gsf->gf_slist[i]; in ip6_mc_msfilter()
510 err = ip6_mc_add_src(idev, group, gsf->gf_fmode, in ip6_mc_msfilter()
518 (void) ip6_mc_add_src(idev, group, gsf->gf_fmode, 0, NULL, 0); in ip6_mc_msfilter()
530 pmc->sfmode = gsf->gf_fmode; in ip6_mc_msfilter()
537 err = ipv6_sock_mc_drop(sk, gsf->gf_interface, group); in ip6_mc_msfilter()
541 int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf, in ip6_mc_msfget() argument
552 group = &((struct sockaddr_in6 *)&gsf->gf_group)->sin6_addr; in ip6_mc_msfget()
558 idev = ip6_mc_find_dev_rcu(net, group, gsf->gf_interface); in ip6_mc_msfget()
573 if (pmc->ifindex != gsf->gf_interface) in ip6_mc_msfget()
580 gsf->gf_fmode = pmc->sfmode; in ip6_mc_msfget()
586 copycount = count < gsf->gf_numsrc ? count : gsf->gf_numsrc; in ip6_mc_msfget()
587 gsf->gf_numsrc = count; in ip6_mc_msfget()
589 copy_to_user(optval, gsf, GROUP_FILTER_SIZE(0))) { in ip6_mc_msfget()