11/*
2- * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2007, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2424/*
2525 * @test
2626 * @bug 4742177 8241786
27+ * @summary Re-test IPv6 (and specifically MulticastSocket) with latest Linux & USAGI code
28+ * @requires os.family != "windows"
2729 * @library /test/lib
2830 * @run main/othervm SetOutgoingIf
29- * @summary Re-test IPv6 (and specifically MulticastSocket) with latest Linux & USAGI code
3031 */
3132import java .io .IOException ;
3233import java .net .*;
3637
3738
3839public class SetOutgoingIf implements AutoCloseable {
39- private static String osname ;
40+
4041 private final MulticastSocket SOCKET ;
4142 private final int PORT ;
4243 private final Map <NetIf , MulticastSender > sendersMap = new ConcurrentHashMap <>();
@@ -49,12 +50,6 @@ private SetOutgoingIf() {
4950 }
5051 }
5152
52- static boolean isWindows () {
53- if (osname == null )
54- osname = System .getProperty ("os.name" );
55- return osname .contains ("Windows" );
56- }
57-
5853 static boolean isMacOS () {
5954 return System .getProperty ("os.name" ).contains ("OS X" );
6055 }
@@ -82,10 +77,6 @@ public void close() {
8277 }
8378
8479 public void run () throws Exception {
85- if (isWindows ()) {
86- System .out .println ("The test only run on non-Windows OS. Bye." );
87- return ;
88- }
8980
9081 if (!hasIPv6 ()) {
9182 System .out .println ("No IPv6 available. Bye." );
0 commit comments