Searched refs:gsf (Results 1 – 6 of 6) sorted by relevance
/linux-2.6.39/net/ipv4/ |
D | ip_sockglue.c | 868 struct group_filter *gsf = NULL; in do_ip_setsockopt() local 877 gsf = kmalloc(optlen, GFP_KERNEL); in do_ip_setsockopt() 878 if (!gsf) { in do_ip_setsockopt() 883 if (copy_from_user(gsf, optval, optlen)) in do_ip_setsockopt() 887 if (gsf->gf_numsrc >= 0x1ffffff || in do_ip_setsockopt() 888 gsf->gf_numsrc > sysctl_igmp_max_msf) { in do_ip_setsockopt() 892 if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) { in do_ip_setsockopt() 896 msize = IP_MSFILTER_SIZE(gsf->gf_numsrc); in do_ip_setsockopt() 902 ifindex = gsf->gf_interface; in do_ip_setsockopt() 903 psin = (struct sockaddr_in *)&gsf->gf_group; in do_ip_setsockopt() [all …]
|
D | igmp.c | 2204 int ip_mc_gsfget(struct sock *sk, struct group_filter *gsf, in ip_mc_gsfget() argument 2214 psin = (struct sockaddr_in *)&gsf->gf_group; in ip_mc_gsfget() 2227 pmc->multi.imr_ifindex == gsf->gf_interface) in ip_mc_gsfget() 2232 gsf->gf_fmode = pmc->sfmode; in ip_mc_gsfget() 2236 copycount = count < gsf->gf_numsrc ? count : gsf->gf_numsrc; in ip_mc_gsfget() 2237 gsf->gf_numsrc = count; in ip_mc_gsfget() 2239 copy_to_user(optval, gsf, GROUP_FILTER_SIZE(0))) { in ip_mc_gsfget()
|
/linux-2.6.39/net/ipv6/ |
D | ipv6_sockglue.c | 652 struct group_filter *gsf; in do_ipv6_setsockopt() local 660 gsf = kmalloc(optlen,GFP_KERNEL); in do_ipv6_setsockopt() 661 if (!gsf) { in do_ipv6_setsockopt() 666 if (copy_from_user(gsf, optval, optlen)) { in do_ipv6_setsockopt() 667 kfree(gsf); in do_ipv6_setsockopt() 671 if (gsf->gf_numsrc >= 0x1ffffffU || in do_ipv6_setsockopt() 672 gsf->gf_numsrc > sysctl_mld_max_msf) { in do_ipv6_setsockopt() 673 kfree(gsf); in do_ipv6_setsockopt() 677 if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) { in do_ipv6_setsockopt() 678 kfree(gsf); in do_ipv6_setsockopt() [all …]
|
D | mcast.c | 452 int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf) in ip6_mc_msfilter() argument 463 group = &((struct sockaddr_in6 *)&gsf->gf_group)->sin6_addr; in ip6_mc_msfilter() 467 if (gsf->gf_fmode != MCAST_INCLUDE && in ip6_mc_msfilter() 468 gsf->gf_fmode != MCAST_EXCLUDE) in ip6_mc_msfilter() 472 idev = ip6_mc_find_dev_rcu(net, group, gsf->gf_interface); in ip6_mc_msfilter() 481 if (gsf->gf_fmode == MCAST_INCLUDE && gsf->gf_numsrc == 0) { in ip6_mc_msfilter() 487 if (pmc->ifindex != gsf->gf_interface) in ip6_mc_msfilter() 496 if (gsf->gf_numsrc) { in ip6_mc_msfilter() 497 newpsl = sock_kmalloc(sk, IP6_SFLSIZE(gsf->gf_numsrc), in ip6_mc_msfilter() 503 newpsl->sl_max = newpsl->sl_count = gsf->gf_numsrc; in ip6_mc_msfilter() [all …]
|
/linux-2.6.39/include/linux/ |
D | igmp.h | 230 extern int ip_mc_gsfget(struct sock *sk, struct group_filter *gsf,
|
/linux-2.6.39/include/net/ |
D | ipv6.h | 628 extern int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf); 629 extern int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf,
|