Fix DatagramChannelMulticastTest.test_joinSourceSpecific_groupBind_ipv4

The test was passing the wrong NetworkInterface (IPv6 instead of IPv4)
to a helper method; this would fail if that network interface didn't
also support IPv4.

Bug: 64825787
Test: DatagramChannelMulticastTest

(cherry picked from commit 4aa761e49c9dcf534f8fc66389bd70323942aaf4)

Change-Id: Ic934a03adc8e43dfdb3b50ba215933cf992fb58b
Merged-In: Ic934a03adc8e43dfdb3b50ba215933cf992fb58b
diff --git a/luni/src/test/java/libcore/java/nio/channels/DatagramChannelMulticastTest.java b/luni/src/test/java/libcore/java/nio/channels/DatagramChannelMulticastTest.java
index ae044b4..9b04092 100644
--- a/luni/src/test/java/libcore/java/nio/channels/DatagramChannelMulticastTest.java
+++ b/luni/src/test/java/libcore/java/nio/channels/DatagramChannelMulticastTest.java
@@ -1009,7 +1009,7 @@
                 GOOD_MULTICAST_IPv4 /* receiverBindAddress */,
                 GOOD_MULTICAST_IPv4 /* groupAddress */,
                 UNICAST_IPv4_1 /* badSenderAddress */,
-                ipv6NetworkInterface);
+                ipv4NetworkInterface);
     }
 
     /**
@@ -1064,6 +1064,7 @@
      * @param receiverBindAddress the address to bind the receiver socket to
      * @param groupAddress the group address to join
      * @param badSenderAddress a unicast address to join to perform a negative test
+     * @param networkInterface The network interface on which to join the multicast group
      */
     private void test_joinSourceSpecific(
             InetAddress senderBindAddress, InetAddress receiverBindAddress, InetAddress groupAddress,