Lines Matching refs:gsf
445 int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf)
457 group = &((struct sockaddr_in6 *)&gsf->gf_group)->sin6_addr;
461 if (gsf->gf_fmode != MCAST_INCLUDE &&
462 gsf->gf_fmode != MCAST_EXCLUDE)
466 idev = ip6_mc_find_dev_rcu(net, group, gsf->gf_interface);
477 if (gsf->gf_fmode == MCAST_INCLUDE && gsf->gf_numsrc == 0) {
483 if (pmc->ifindex != gsf->gf_interface)
492 if (gsf->gf_numsrc) {
493 newpsl = sock_kmalloc(sk, IP6_SFLSIZE(gsf->gf_numsrc),
499 newpsl->sl_max = newpsl->sl_count = gsf->gf_numsrc;
503 psin6 = (struct sockaddr_in6 *)&gsf->gf_slist[i];
506 err = ip6_mc_add_src(idev, group, gsf->gf_fmode,
514 (void) ip6_mc_add_src(idev, group, gsf->gf_fmode, 0, NULL, 0);
526 pmc->sfmode = gsf->gf_fmode;
534 err = ipv6_sock_mc_drop(sk, gsf->gf_interface, group);
538 int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf,
550 group = &((struct sockaddr_in6 *)&gsf->gf_group)->sin6_addr;
556 idev = ip6_mc_find_dev_rcu(net, group, gsf->gf_interface);
572 if (pmc->ifindex != gsf->gf_interface)
579 gsf->gf_fmode = pmc->sfmode;
585 copycount = count < gsf->gf_numsrc ? count : gsf->gf_numsrc;
586 gsf->gf_numsrc = count;
588 copy_to_user(optval, gsf, GROUP_FILTER_SIZE(0))) {