Searched refs:msf (Results 1 – 2 of 2) sorted by relevance
941 struct ip_msfilter *msf; in do_ip_setsockopt() local949 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()[all …]
2438 int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf, int ifindex) in ip_mc_msfilter() argument2442 __be32 addr = msf->imsf_multiaddr; in ip_mc_msfilter()2452 if (msf->imsf_fmode != MCAST_INCLUDE && in ip_mc_msfilter()2453 msf->imsf_fmode != MCAST_EXCLUDE) in ip_mc_msfilter()2458 imr.imr_multiaddr.s_addr = msf->imsf_multiaddr; in ip_mc_msfilter()2459 imr.imr_address.s_addr = msf->imsf_interface; in ip_mc_msfilter()2469 if (msf->imsf_fmode == MCAST_INCLUDE && msf->imsf_numsrc == 0) { in ip_mc_msfilter()2475 if (pmc->multi.imr_multiaddr.s_addr == msf->imsf_multiaddr && in ip_mc_msfilter()2483 if (msf->imsf_numsrc) { in ip_mc_msfilter()2484 newpsl = sock_kmalloc(sk, IP_SFLSIZE(msf->imsf_numsrc), in ip_mc_msfilter()[all …]