< prev index next >

src/java.base/share/classes/sun/nio/ch/DatagramChannelImpl.java

Print this page

        

*** 55,65 **** import java.util.Set; import java.util.concurrent.locks.ReentrantLock; import sun.net.ResourceManager; import sun.net.ext.ExtendedSocketOptions; - import sun.net.util.IPAddressUtil; /** * An implementation of DatagramChannels. */ --- 55,64 ----
*** 526,545 **** } } } else { // not connected SecurityManager sm = System.getSecurityManager(); - InetAddress ia = isa.getAddress(); if (sm != null) { if (ia.isMulticastAddress()) { sm.checkMulticast(ia); } else { sm.checkConnect(ia.getHostAddress(), isa.getPort()); } } - if (ia.isLinkLocalAddress()) - isa = IPAddressUtil.toScopedAddress(isa); n = send(fd, src, isa); if (blocking) { while (IOStatus.okayToRetry(n) && isOpen()) { park(Net.POLLOUT); n = send(fd, src, isa); --- 525,542 ---- } } } else { // not connected SecurityManager sm = System.getSecurityManager(); if (sm != null) { + InetAddress ia = isa.getAddress(); if (ia.isMulticastAddress()) { sm.checkMulticast(ia); } else { sm.checkConnect(ia.getHostAddress(), isa.getPort()); } } n = send(fd, src, isa); if (blocking) { while (IOStatus.okayToRetry(n) && isOpen()) { park(Net.POLLOUT); n = send(fd, src, isa);
< prev index next >