< prev index next >
src/jdk.sctp/unix/native/libsctp/SctpChannelImpl.c
Print this page
rev 59105 : imported patch corelibs
@@ -324,14 +324,15 @@
case SCTP_ADDR_ADDED :
event = sun_nio_ch_sctp_PeerAddrChange_SCTP_ADDR_ADDED;
break;
case SCTP_ADDR_MADE_PRIM :
event = sun_nio_ch_sctp_PeerAddrChange_SCTP_ADDR_MADE_PRIM;
-#ifdef __linux__ /* Solaris currently doesn't support SCTP_ADDR_CONFIRMED */
break;
+#ifdef __linux__
case SCTP_ADDR_CONFIRMED :
event = sun_nio_ch_sctp_PeerAddrChange_SCTP_ADDR_CONFIRMED;
+ break;
#endif /* __linux__ */
}
addressObj = SockAddrToInetSocketAddress(env, (struct sockaddr*)&spc->spc_aaddr);
CHECK_NULL(addressObj);
@@ -477,24 +478,10 @@
return 0;
}
bufp = newBuf;
rv += rvSAVE;
}
-#ifdef __sparc
- else if ((intptr_t)addr & 0x3) {
- /* the given buffer is not 4 byte aligned */
- char* newBuf;
- if ((newBuf = malloc(SCTP_NOTIFICATION_SIZE)) == NULL) {
- JNU_ThrowOutOfMemoryError(env, "Out of native heap space.");
- return -1;
- }
- allocated = JNI_TRUE;
-
- memcpy(newBuf, addr, rv);
- bufp = newBuf;
- }
-#endif
snp = (union sctp_notification *) bufp;
if (handleNotification(env, fd, resultContainerObj, snp, rv,
(msg->msg_flags & MSG_EOR),
&sa.sa) == JNI_TRUE) {
/* We have received a notification that is of interest
< prev index next >