Lines Matching refs:msf
941 struct ip_msfilter *msf; in do_ip_setsockopt() local
949 msf = memdup_user(optval, optlen); in do_ip_setsockopt()
950 if (IS_ERR(msf)) { in do_ip_setsockopt()
951 err = PTR_ERR(msf); in do_ip_setsockopt()
955 if (msf->imsf_numsrc >= 0x3ffffffcU || in do_ip_setsockopt()
956 msf->imsf_numsrc > net->ipv4.sysctl_igmp_max_msf) { in do_ip_setsockopt()
957 kfree(msf); in do_ip_setsockopt()
961 if (IP_MSFILTER_SIZE(msf->imsf_numsrc) > optlen) { in do_ip_setsockopt()
962 kfree(msf); in do_ip_setsockopt()
966 err = ip_mc_msfilter(sk, msf, 0); in do_ip_setsockopt()
967 kfree(msf); in do_ip_setsockopt()
1090 struct ip_msfilter *msf = NULL; in do_ip_setsockopt() local
1117 msf = kmalloc(msize, GFP_KERNEL); in do_ip_setsockopt()
1118 if (!msf) { in do_ip_setsockopt()
1128 msf->imsf_multiaddr = psin->sin_addr.s_addr; in do_ip_setsockopt()
1129 msf->imsf_interface = 0; in do_ip_setsockopt()
1130 msf->imsf_fmode = gsf->gf_fmode; in do_ip_setsockopt()
1131 msf->imsf_numsrc = gsf->gf_numsrc; in do_ip_setsockopt()
1138 msf->imsf_slist[i] = psin->sin_addr.s_addr; in do_ip_setsockopt()
1143 err = ip_mc_msfilter(sk, msf, ifindex); in do_ip_setsockopt()
1145 kfree(msf); in do_ip_setsockopt()
1459 struct ip_msfilter msf; in do_ip_getsockopt() local
1465 if (copy_from_user(&msf, optval, IP_MSFILTER_SIZE(0))) { in do_ip_getsockopt()
1469 err = ip_mc_msfget(sk, &msf, in do_ip_getsockopt()