Searched refs:gsf (Results 1 – 4 of 4) sorted by relevance
/net/ipv6/ |
D | ipv6_sockglue.c | 206 struct group_filter *gsf; in ipv6_set_mcast_msfilter() local 214 gsf = memdup_sockptr(optval, optlen); in ipv6_set_mcast_msfilter() 215 if (IS_ERR(gsf)) in ipv6_set_mcast_msfilter() 216 return PTR_ERR(gsf); in ipv6_set_mcast_msfilter() 220 if (gsf->gf_numsrc >= 0x1ffffffU || in ipv6_set_mcast_msfilter() 221 gsf->gf_numsrc > sysctl_mld_max_msf) in ipv6_set_mcast_msfilter() 225 if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) in ipv6_set_mcast_msfilter() 228 ret = ip6_mc_msfilter(sk, gsf, gsf->gf_slist_flex); in ipv6_set_mcast_msfilter() 230 kfree(gsf); in ipv6_set_mcast_msfilter() 1056 struct group_filter gsf; in ipv6_get_msfilter() local [all …]
|
D | mcast.c | 488 int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf, in ip6_mc_msfilter() argument 500 group = &((struct sockaddr_in6 *)&gsf->gf_group)->sin6_addr; in ip6_mc_msfilter() 504 if (gsf->gf_fmode != MCAST_INCLUDE && in ip6_mc_msfilter() 505 gsf->gf_fmode != MCAST_EXCLUDE) in ip6_mc_msfilter() 508 idev = ip6_mc_find_dev_rtnl(net, group, gsf->gf_interface); in ip6_mc_msfilter() 514 if (gsf->gf_fmode == MCAST_INCLUDE && gsf->gf_numsrc == 0) { in ip6_mc_msfilter() 520 if (pmc->ifindex != gsf->gf_interface) in ip6_mc_msfilter() 529 if (gsf->gf_numsrc) { in ip6_mc_msfilter() 531 gsf->gf_numsrc), in ip6_mc_msfilter() 537 newpsl->sl_max = newpsl->sl_count = gsf->gf_numsrc; in ip6_mc_msfilter() [all …]
|
/net/ipv4/ |
D | ip_sockglue.c | 777 struct group_filter *gsf = NULL; in ip_set_mcast_msfilter() local 785 gsf = memdup_sockptr(optval, optlen); in ip_set_mcast_msfilter() 786 if (IS_ERR(gsf)) in ip_set_mcast_msfilter() 787 return PTR_ERR(gsf); in ip_set_mcast_msfilter() 791 if (gsf->gf_numsrc >= 0x1ffffff || in ip_set_mcast_msfilter() 792 gsf->gf_numsrc > READ_ONCE(sock_net(sk)->ipv4.sysctl_igmp_max_msf)) in ip_set_mcast_msfilter() 796 if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) in ip_set_mcast_msfilter() 799 err = set_mcast_msfilter(sk, gsf->gf_interface, gsf->gf_numsrc, in ip_set_mcast_msfilter() 800 gsf->gf_fmode, &gsf->gf_group, in ip_set_mcast_msfilter() 801 gsf->gf_slist_flex); in ip_set_mcast_msfilter() [all …]
|
D | igmp.c | 2594 int ip_mc_gsfget(struct sock *sk, struct group_filter *gsf, in ip_mc_gsfget() argument 2606 psin = (struct sockaddr_in *)&gsf->gf_group; in ip_mc_gsfget() 2615 pmc->multi.imr_ifindex == gsf->gf_interface) in ip_mc_gsfget() 2620 gsf->gf_fmode = pmc->sfmode; in ip_mc_gsfget() 2623 copycount = count < gsf->gf_numsrc ? count : gsf->gf_numsrc; in ip_mc_gsfget() 2624 gsf->gf_numsrc = count; in ip_mc_gsfget()
|