Home
last modified time | relevance | path

Searched refs:greqs (Results 1 – 2 of 2) sorted by relevance

/net/ipv4/
Dip_sockglue.c1017 struct group_source_req greqs; in do_ip_setsockopt() local
1024 if (copy_from_user(&greqs, optval, sizeof(greqs))) { in do_ip_setsockopt()
1028 if (greqs.gsr_group.ss_family != AF_INET || in do_ip_setsockopt()
1029 greqs.gsr_source.ss_family != AF_INET) { in do_ip_setsockopt()
1033 psin = (struct sockaddr_in *)&greqs.gsr_group; in do_ip_setsockopt()
1035 psin = (struct sockaddr_in *)&greqs.gsr_source; in do_ip_setsockopt()
1048 psin = (struct sockaddr_in *)&greqs.gsr_group; in do_ip_setsockopt()
1051 mreq.imr_ifindex = greqs.gsr_interface; in do_ip_setsockopt()
1055 greqs.gsr_interface = mreq.imr_ifindex; in do_ip_setsockopt()
1063 greqs.gsr_interface); in do_ip_setsockopt()
/net/ipv6/
Dipv6_sockglue.c680 struct group_source_req greqs; in do_ipv6_setsockopt() local
685 if (copy_from_user(&greqs, optval, sizeof(greqs))) { in do_ipv6_setsockopt()
689 if (greqs.gsr_group.ss_family != AF_INET6 || in do_ipv6_setsockopt()
690 greqs.gsr_source.ss_family != AF_INET6) { in do_ipv6_setsockopt()
703 psin6 = (struct sockaddr_in6 *)&greqs.gsr_group; in do_ipv6_setsockopt()
704 retv = ipv6_sock_mc_join(sk, greqs.gsr_interface, in do_ipv6_setsockopt()
715 retv = ip6_mc_source(add, omode, sk, &greqs); in do_ipv6_setsockopt()