Lines Matching refs:msf
667 struct ip_msfilter *msf; in set_mcast_msfilter() local
671 msf = kmalloc(IP_MSFILTER_SIZE(numsrc), GFP_KERNEL); in set_mcast_msfilter()
672 if (!msf) in set_mcast_msfilter()
678 msf->imsf_multiaddr = psin->sin_addr.s_addr; in set_mcast_msfilter()
679 msf->imsf_interface = 0; in set_mcast_msfilter()
680 msf->imsf_fmode = fmode; in set_mcast_msfilter()
681 msf->imsf_numsrc = numsrc; in set_mcast_msfilter()
687 msf->imsf_slist_flex[i] = psin->sin_addr.s_addr; in set_mcast_msfilter()
689 err = ip_mc_msfilter(sk, msf, ifindex); in set_mcast_msfilter()
690 kfree(msf); in set_mcast_msfilter()
694 kfree(msf); in set_mcast_msfilter()
1255 struct ip_msfilter *msf; in do_ip_setsockopt() local
1263 msf = memdup_sockptr(optval, optlen); in do_ip_setsockopt()
1264 if (IS_ERR(msf)) { in do_ip_setsockopt()
1265 err = PTR_ERR(msf); in do_ip_setsockopt()
1269 if (msf->imsf_numsrc >= 0x3ffffffcU || in do_ip_setsockopt()
1270 msf->imsf_numsrc > READ_ONCE(net->ipv4.sysctl_igmp_max_msf)) { in do_ip_setsockopt()
1271 kfree(msf); in do_ip_setsockopt()
1275 if (IP_MSFILTER_SIZE(msf->imsf_numsrc) > optlen) { in do_ip_setsockopt()
1276 kfree(msf); in do_ip_setsockopt()
1280 err = ip_mc_msfilter(sk, msf, 0); in do_ip_setsockopt()
1281 kfree(msf); in do_ip_setsockopt()
1708 struct ip_msfilter msf; in do_ip_getsockopt() local
1714 if (copy_from_sockptr(&msf, optval, IP_MSFILTER_SIZE(0))) { in do_ip_getsockopt()
1718 err = ip_mc_msfget(sk, &msf, optval, optlen); in do_ip_getsockopt()