Searched refs:greqs (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/net/ipv6/ |
D | ipv6_sockglue.c | 139 static int copy_group_source_from_sockptr(struct group_source_req *greqs, in copy_group_source_from_sockptr() argument 149 greqs->gsr_interface = gr32.gsr_interface; in copy_group_source_from_sockptr() 150 greqs->gsr_group = gr32.gsr_group; in copy_group_source_from_sockptr() 151 greqs->gsr_source = gr32.gsr_source; in copy_group_source_from_sockptr() 153 if (optlen < sizeof(*greqs)) in copy_group_source_from_sockptr() 155 if (copy_from_sockptr(greqs, optval, sizeof(*greqs))) in copy_group_source_from_sockptr() 165 struct group_source_req greqs; in do_ipv6_mcast_group_source() local 169 ret = copy_group_source_from_sockptr(&greqs, optval, optlen); in do_ipv6_mcast_group_source() 173 if (greqs.gsr_group.ss_family != AF_INET6 || in do_ipv6_mcast_group_source() 174 greqs.gsr_source.ss_family != AF_INET6) in do_ipv6_mcast_group_source() [all …]
|
/Linux-v5.10/net/ipv4/ |
D | ip_sockglue.c | 698 static int copy_group_source_from_sockptr(struct group_source_req *greqs, in copy_group_source_from_sockptr() argument 708 greqs->gsr_interface = gr32.gsr_interface; in copy_group_source_from_sockptr() 709 greqs->gsr_group = gr32.gsr_group; in copy_group_source_from_sockptr() 710 greqs->gsr_source = gr32.gsr_source; in copy_group_source_from_sockptr() 712 if (optlen != sizeof(*greqs)) in copy_group_source_from_sockptr() 714 if (copy_from_sockptr(greqs, optval, sizeof(*greqs))) in copy_group_source_from_sockptr() 724 struct group_source_req greqs; in do_mcast_group_source() local 729 err = copy_group_source_from_sockptr(&greqs, optval, optlen); in do_mcast_group_source() 733 if (greqs.gsr_group.ss_family != AF_INET || in do_mcast_group_source() 734 greqs.gsr_source.ss_family != AF_INET) in do_mcast_group_source() [all …]
|