2 * Copyright (c) 2015-2018 The strace developers.
5 * SPDX-License-Identifier: LGPL-2.1-or-later
9 #include <netinet/in.h>
11 #ifdef MCAST_JOIN_GROUP
13 # include DEF_MPERS_TYPE(struct_group_req)
14 typedef struct group_req struct_group_req;
16 #endif /* MCAST_JOIN_GROUP */
20 #ifdef MCAST_JOIN_GROUP
22 # include "print_fields.h"
24 MPERS_PRINTER_DECL(void, print_group_req, struct tcb *const tcp,
25 const kernel_ulong_t addr, const int len)
27 struct_group_req greq;
29 if (len < (int) sizeof(greq)) {
31 } else if (!umove_or_printaddr(tcp, addr, &greq)) {
32 PRINT_FIELD_IFINDEX("{", greq, gr_interface);
33 PRINT_FIELD_SOCKADDR(", ", greq, gr_group);
38 #endif /* MCAST_JOIN_GROUP */