Lines Matching refs:gsf
777 struct group_filter *gsf = NULL; in ip_set_mcast_msfilter() local
785 gsf = memdup_sockptr(optval, optlen); in ip_set_mcast_msfilter()
786 if (IS_ERR(gsf)) in ip_set_mcast_msfilter()
787 return PTR_ERR(gsf); in ip_set_mcast_msfilter()
791 if (gsf->gf_numsrc >= 0x1ffffff || in ip_set_mcast_msfilter()
792 gsf->gf_numsrc > READ_ONCE(sock_net(sk)->ipv4.sysctl_igmp_max_msf)) in ip_set_mcast_msfilter()
796 if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) in ip_set_mcast_msfilter()
799 err = set_mcast_msfilter(sk, gsf->gf_interface, gsf->gf_numsrc, in ip_set_mcast_msfilter()
800 gsf->gf_fmode, &gsf->gf_group, in ip_set_mcast_msfilter()
801 gsf->gf_slist_flex); in ip_set_mcast_msfilter()
803 kfree(gsf); in ip_set_mcast_msfilter()
1468 struct group_filter gsf; in ip_get_mcast_msfilter() local
1474 if (copy_from_user(&gsf, p, size0)) in ip_get_mcast_msfilter()
1477 num = gsf.gf_numsrc; in ip_get_mcast_msfilter()
1478 err = ip_mc_gsfget(sk, &gsf, p->gf_slist_flex); in ip_get_mcast_msfilter()
1481 if (gsf.gf_numsrc < num) in ip_get_mcast_msfilter()
1482 num = gsf.gf_numsrc; in ip_get_mcast_msfilter()
1484 copy_to_user(p, &gsf, size0)) in ip_get_mcast_msfilter()