test/jdk/java/net/ipv6tests/UdpTest.java
changeset 49799 33dcb9c42f55
parent 47216 71c04702a3d5
child 54903 5a211ee83bf1
equal deleted inserted replaced
49798:4bb2a92c13ea 49799:33dcb9c42f55
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 4868820
    26  * @bug 4868820
    27  * @summary IPv6 support for Windows XP and 2003 server
    27  * @summary IPv6 support for Windows XP and 2003 server
       
    28  * @library /test/lib
       
    29  * @build jdk.test.lib.NetworkConfiguration
       
    30  *        jdk.test.lib.Platform
       
    31  * @run main UdpTest
    28  */
    32  */
    29 
    33 
    30 import java.net.*;
    34 import java.net.DatagramPacket;
    31 import java.io.*;
    35 import java.net.DatagramSocket;
       
    36 import java.net.Inet4Address;
       
    37 import java.net.Inet6Address;
       
    38 import java.net.InetAddress;
       
    39 import java.net.PortUnreachableException;
       
    40 import java.net.SocketTimeoutException;
    32 
    41 
    33 public class UdpTest extends Tests {
    42 public class UdpTest extends Tests {
    34     static DatagramSocket c3, s1, s2, s3;
    43     static DatagramSocket c3, s1, s2, s3;
    35     static InetAddress s1peer, s2peer;
    44     static InetAddress s1peer, s2peer;
    36 
    45