Lines Matching refs:msf
2442 int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf, int ifindex) in ip_mc_msfilter() argument
2446 __be32 addr = msf->imsf_multiaddr; in ip_mc_msfilter()
2456 if (msf->imsf_fmode != MCAST_INCLUDE && in ip_mc_msfilter()
2457 msf->imsf_fmode != MCAST_EXCLUDE) in ip_mc_msfilter()
2462 imr.imr_multiaddr.s_addr = msf->imsf_multiaddr; in ip_mc_msfilter()
2463 imr.imr_address.s_addr = msf->imsf_interface; in ip_mc_msfilter()
2473 if (msf->imsf_fmode == MCAST_INCLUDE && msf->imsf_numsrc == 0) { in ip_mc_msfilter()
2479 if (pmc->multi.imr_multiaddr.s_addr == msf->imsf_multiaddr && in ip_mc_msfilter()
2487 if (msf->imsf_numsrc) { in ip_mc_msfilter()
2489 msf->imsf_numsrc), in ip_mc_msfilter()
2495 newpsl->sl_max = newpsl->sl_count = msf->imsf_numsrc; in ip_mc_msfilter()
2496 memcpy(newpsl->sl_addr, msf->imsf_slist_flex, in ip_mc_msfilter()
2497 flex_array_size(msf, imsf_slist_flex, msf->imsf_numsrc)); in ip_mc_msfilter()
2498 err = ip_mc_add_src(in_dev, &msf->imsf_multiaddr, in ip_mc_msfilter()
2499 msf->imsf_fmode, newpsl->sl_count, newpsl->sl_addr, 0); in ip_mc_msfilter()
2508 (void) ip_mc_add_src(in_dev, &msf->imsf_multiaddr, in ip_mc_msfilter()
2509 msf->imsf_fmode, 0, NULL, 0); in ip_mc_msfilter()
2513 (void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode, in ip_mc_msfilter()
2519 (void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode, in ip_mc_msfilter()
2525 pmc->sfmode = msf->imsf_fmode; in ip_mc_msfilter()
2532 int ip_mc_msfget(struct sock *sk, struct ip_msfilter *msf, in ip_mc_msfget() argument
2537 __be32 addr = msf->imsf_multiaddr; in ip_mc_msfget()
2549 imr.imr_multiaddr.s_addr = msf->imsf_multiaddr; in ip_mc_msfget()
2550 imr.imr_address.s_addr = msf->imsf_interface; in ip_mc_msfget()
2561 if (pmc->multi.imr_multiaddr.s_addr == msf->imsf_multiaddr && in ip_mc_msfget()
2567 msf->imsf_fmode = pmc->sfmode; in ip_mc_msfget()
2574 copycount = count < msf->imsf_numsrc ? count : msf->imsf_numsrc; in ip_mc_msfget()
2576 msf->imsf_numsrc = count; in ip_mc_msfget()
2579 copy_to_sockptr(optval, msf, IP_MSFILTER_SIZE(0))) { in ip_mc_msfget()