Lines Matching refs:msf
2446 int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf, int ifindex) in ip_mc_msfilter() argument
2450 __be32 addr = msf->imsf_multiaddr; in ip_mc_msfilter()
2460 if (msf->imsf_fmode != MCAST_INCLUDE && in ip_mc_msfilter()
2461 msf->imsf_fmode != MCAST_EXCLUDE) in ip_mc_msfilter()
2466 imr.imr_multiaddr.s_addr = msf->imsf_multiaddr; in ip_mc_msfilter()
2467 imr.imr_address.s_addr = msf->imsf_interface; in ip_mc_msfilter()
2477 if (msf->imsf_fmode == MCAST_INCLUDE && msf->imsf_numsrc == 0) { in ip_mc_msfilter()
2483 if (pmc->multi.imr_multiaddr.s_addr == msf->imsf_multiaddr && in ip_mc_msfilter()
2491 if (msf->imsf_numsrc) { in ip_mc_msfilter()
2493 msf->imsf_numsrc), in ip_mc_msfilter()
2499 newpsl->sl_max = newpsl->sl_count = msf->imsf_numsrc; in ip_mc_msfilter()
2500 memcpy(newpsl->sl_addr, msf->imsf_slist_flex, in ip_mc_msfilter()
2501 flex_array_size(msf, imsf_slist_flex, msf->imsf_numsrc)); in ip_mc_msfilter()
2502 err = ip_mc_add_src(in_dev, &msf->imsf_multiaddr, in ip_mc_msfilter()
2503 msf->imsf_fmode, newpsl->sl_count, newpsl->sl_addr, 0); in ip_mc_msfilter()
2512 (void) ip_mc_add_src(in_dev, &msf->imsf_multiaddr, in ip_mc_msfilter()
2513 msf->imsf_fmode, 0, NULL, 0); in ip_mc_msfilter()
2517 (void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode, in ip_mc_msfilter()
2523 (void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode, in ip_mc_msfilter()
2529 pmc->sfmode = msf->imsf_fmode; in ip_mc_msfilter()
2536 int ip_mc_msfget(struct sock *sk, struct ip_msfilter *msf, in ip_mc_msfget() argument
2541 __be32 addr = msf->imsf_multiaddr; in ip_mc_msfget()
2553 imr.imr_multiaddr.s_addr = msf->imsf_multiaddr; in ip_mc_msfget()
2554 imr.imr_address.s_addr = msf->imsf_interface; in ip_mc_msfget()
2565 if (pmc->multi.imr_multiaddr.s_addr == msf->imsf_multiaddr && in ip_mc_msfget()
2571 msf->imsf_fmode = pmc->sfmode; in ip_mc_msfget()
2578 copycount = count < msf->imsf_numsrc ? count : msf->imsf_numsrc; in ip_mc_msfget()
2580 msf->imsf_numsrc = count; in ip_mc_msfget()
2583 copy_to_sockptr(optval, msf, IP_MSFILTER_SIZE(0))) { in ip_mc_msfget()