Searched refs:msf (Results 1 – 2 of 2) sorted by relevance
669 struct ip_msfilter *msf; in set_mcast_msfilter() local673 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()[all …]
2445 int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf, int ifindex) in ip_mc_msfilter() argument2449 __be32 addr = msf->imsf_multiaddr; in ip_mc_msfilter()2459 if (msf->imsf_fmode != MCAST_INCLUDE && in ip_mc_msfilter()2460 msf->imsf_fmode != MCAST_EXCLUDE) in ip_mc_msfilter()2465 imr.imr_multiaddr.s_addr = msf->imsf_multiaddr; in ip_mc_msfilter()2466 imr.imr_address.s_addr = msf->imsf_interface; in ip_mc_msfilter()2476 if (msf->imsf_fmode == MCAST_INCLUDE && msf->imsf_numsrc == 0) { in ip_mc_msfilter()2482 if (pmc->multi.imr_multiaddr.s_addr == msf->imsf_multiaddr && in ip_mc_msfilter()2490 if (msf->imsf_numsrc) { in ip_mc_msfilter()2492 msf->imsf_numsrc), in ip_mc_msfilter()[all …]