From 92fa2ce23cc414dc9241f266a33b68dc98178ad1 Mon Sep 17 00:00:00 2001
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Sun, 9 Jul 2017 18:43:34 +0000
Subject: [PATCH] net: hook up MCAST_JOIN_GROUP/MCAST_LEAVE_GROUP decoding for
 SOL_IPV6

As multicast socket options are shared between IPv4 and IPv6,
they should be decoded both for SOL_IP and SOL_IPV6.

* net.c (print_setsockopt) <SOL_IPV6> [MCAST_JOIN_GROUP]: Handle
MCAST_JOIN_GROUP and MCAST_LEAVE_GROUP.
---
 net.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net.c b/net.c
index 127b70dd..6f04b9de 100644
--- a/net.c
+++ b/net.c
@@ -805,6 +805,12 @@ print_setsockopt(struct tcb *const tcp, const unsigned int level,
 			print_mreq6(tcp, addr, len);
 			return;
 #endif /* IPV6_ADD_MEMBERSHIP */
+#ifdef MCAST_JOIN_GROUP
+		case MCAST_JOIN_GROUP:
+		case MCAST_LEAVE_GROUP:
+			print_group_req(tcp, addr, len);
+			return;
+#endif /* MCAST_JOIN_GROUP */
 		}
 		break;
 
-- 
2.40.0