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.
This commit is contained in:
Дмитрий Левин 2017-07-09 18:43:34 +00:00
parent a03c9c40de
commit 92fa2ce23c

6
net.c
View File

@ -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;