Lines Matching refs:mreq
903 struct ip_mreq mreq; in print_mreq() local
905 if (len < (int) sizeof(mreq)) { in print_mreq()
907 } else if (!umove_or_printaddr(tcp, addr, &mreq)) { in print_mreq()
908 PRINT_FIELD_INET4_ADDR("{", mreq, imr_multiaddr); in print_mreq()
909 PRINT_FIELD_INET4_ADDR(", ", mreq, imr_interface); in print_mreq()
920 struct ipv6_mreq mreq; in print_mreq6() local
922 if (len < (int) sizeof(mreq)) { in print_mreq6()
924 } else if (!umove_or_printaddr(tcp, addr, &mreq)) { in print_mreq6()
925 PRINT_FIELD_INET_ADDR("{", mreq, ipv6mr_multiaddr, AF_INET6); in print_mreq6()
926 PRINT_FIELD_IFINDEX(", ", mreq, ipv6mr_interface); in print_mreq6()
957 struct packet_mreq mreq; in print_packet_mreq() local
959 if (len != sizeof(mreq) || in print_packet_mreq()
960 umove(tcp, addr, &mreq) < 0) { in print_packet_mreq()
965 PRINT_FIELD_IFINDEX("{", mreq, mr_ifindex); in print_packet_mreq()
966 PRINT_FIELD_XVAL(", ", mreq, mr_type, packet_mreq_type, in print_packet_mreq()
968 PRINT_FIELD_U(", ", mreq, mr_alen); in print_packet_mreq()
970 if (mreq.mr_alen > ARRAY_SIZE(mreq.mr_address)) in print_packet_mreq()
971 mreq.mr_alen = ARRAY_SIZE(mreq.mr_address); in print_packet_mreq()
972 for (i = 0; i < mreq.mr_alen; ++i) in print_packet_mreq()
973 tprintf("%02x", mreq.mr_address[i]); in print_packet_mreq()