Lines Matching refs:msf
669 struct ip_msfilter *msf; in set_mcast_msfilter() local
673 msf = kmalloc(IP_MSFILTER_SIZE(numsrc), GFP_KERNEL); in set_mcast_msfilter()
674 if (!msf) in set_mcast_msfilter()
680 msf->imsf_multiaddr = psin->sin_addr.s_addr; in set_mcast_msfilter()
681 msf->imsf_interface = 0; in set_mcast_msfilter()
682 msf->imsf_fmode = fmode; in set_mcast_msfilter()
683 msf->imsf_numsrc = numsrc; in set_mcast_msfilter()
689 msf->imsf_slist_flex[i] = psin->sin_addr.s_addr; in set_mcast_msfilter()
691 err = ip_mc_msfilter(sk, msf, ifindex); in set_mcast_msfilter()
692 kfree(msf); in set_mcast_msfilter()
696 kfree(msf); in set_mcast_msfilter()
1243 struct ip_msfilter *msf; in do_ip_setsockopt() local
1251 msf = memdup_sockptr(optval, optlen); in do_ip_setsockopt()
1252 if (IS_ERR(msf)) { in do_ip_setsockopt()
1253 err = PTR_ERR(msf); in do_ip_setsockopt()
1257 if (msf->imsf_numsrc >= 0x3ffffffcU || in do_ip_setsockopt()
1258 msf->imsf_numsrc > READ_ONCE(net->ipv4.sysctl_igmp_max_msf)) { in do_ip_setsockopt()
1259 kfree(msf); in do_ip_setsockopt()
1263 if (IP_MSFILTER_SIZE(msf->imsf_numsrc) > optlen) { in do_ip_setsockopt()
1264 kfree(msf); in do_ip_setsockopt()
1268 err = ip_mc_msfilter(sk, msf, 0); in do_ip_setsockopt()
1269 kfree(msf); in do_ip_setsockopt()
1675 struct ip_msfilter msf; in do_ip_getsockopt() local
1681 if (copy_from_sockptr(&msf, optval, IP_MSFILTER_SIZE(0))) { in do_ip_getsockopt()
1685 err = ip_mc_msfget(sk, &msf, optval, optlen); in do_ip_getsockopt()