3261N/A * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * @summary Re-test IPv6 (and specifically MulticastSocket) with latest Linux & USAGI code 0N/A // We need 2 or more network interfaces to run the test 1703N/A // we should use only network interfaces with multicast support which are in "up" state 1720N/A // now determine what (if any) type of addresses are assigned to this interface 1720N/A // We will send packets to one ipv4, and one ipv6 0N/A // multicast group using each network interface :- 1720N/A // ff02::1:1 --|--> using network interface #1 1720N/A // ff02::1:2 --|--> using network interface #2 1720N/A // use a separated thread to send to those 2 groups 0N/A // try to receive on each group, then check if the packet comes 0N/A // from the expected network interface 1720N/A // the interface supports the IP multicast group 1720N/A // test failed if any exception 1720N/A // now check which network interface this packet comes from 1720N/A //throw new RuntimeException("Test failed.");