Searched refs:greqs (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.1/net/ipv6/ |
D | ipv6_sockglue.c | 141 static int copy_group_source_from_sockptr(struct group_source_req *greqs, in copy_group_source_from_sockptr() argument 151 greqs->gsr_interface = gr32.gsr_interface; in copy_group_source_from_sockptr() 152 greqs->gsr_group = gr32.gsr_group; in copy_group_source_from_sockptr() 153 greqs->gsr_source = gr32.gsr_source; in copy_group_source_from_sockptr() 155 if (optlen < sizeof(*greqs)) in copy_group_source_from_sockptr() 157 if (copy_from_sockptr(greqs, optval, sizeof(*greqs))) in copy_group_source_from_sockptr() 167 struct group_source_req greqs; in do_ipv6_mcast_group_source() local 171 ret = copy_group_source_from_sockptr(&greqs, optval, optlen); in do_ipv6_mcast_group_source() 175 if (greqs.gsr_group.ss_family != AF_INET6 || in do_ipv6_mcast_group_source() 176 greqs.gsr_source.ss_family != AF_INET6) in do_ipv6_mcast_group_source() [all …]
|
/Linux-v6.1/net/ipv4/ |
D | ip_sockglue.c | 697 static int copy_group_source_from_sockptr(struct group_source_req *greqs, in copy_group_source_from_sockptr() argument 707 greqs->gsr_interface = gr32.gsr_interface; in copy_group_source_from_sockptr() 708 greqs->gsr_group = gr32.gsr_group; in copy_group_source_from_sockptr() 709 greqs->gsr_source = gr32.gsr_source; in copy_group_source_from_sockptr() 711 if (optlen != sizeof(*greqs)) in copy_group_source_from_sockptr() 713 if (copy_from_sockptr(greqs, optval, sizeof(*greqs))) in copy_group_source_from_sockptr() 723 struct group_source_req greqs; in do_mcast_group_source() local 728 err = copy_group_source_from_sockptr(&greqs, optval, optlen); in do_mcast_group_source() 732 if (greqs.gsr_group.ss_family != AF_INET || in do_mcast_group_source() 733 greqs.gsr_source.ss_family != AF_INET) in do_mcast_group_source() [all …]
|