Lines Matching refs:gsf
652 struct group_filter *gsf; in do_ipv6_setsockopt() local
660 gsf = kmalloc(optlen,GFP_KERNEL); in do_ipv6_setsockopt()
661 if (!gsf) { in do_ipv6_setsockopt()
666 if (copy_from_user(gsf, optval, optlen)) { in do_ipv6_setsockopt()
667 kfree(gsf); in do_ipv6_setsockopt()
671 if (gsf->gf_numsrc >= 0x1ffffffU || in do_ipv6_setsockopt()
672 gsf->gf_numsrc > sysctl_mld_max_msf) { in do_ipv6_setsockopt()
673 kfree(gsf); in do_ipv6_setsockopt()
677 if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) { in do_ipv6_setsockopt()
678 kfree(gsf); in do_ipv6_setsockopt()
682 retv = ip6_mc_msfilter(sk, gsf); in do_ipv6_setsockopt()
683 kfree(gsf); in do_ipv6_setsockopt()
939 struct group_filter gsf; in do_ipv6_getsockopt() local
944 if (copy_from_user(&gsf, optval, GROUP_FILTER_SIZE(0))) in do_ipv6_getsockopt()
946 if (gsf.gf_group.ss_family != AF_INET6) in do_ipv6_getsockopt()
949 err = ip6_mc_msfget(sk, &gsf, in do_ipv6_getsockopt()