< prev index next >

src/jdk.sctp/unix/native/libsctp/Sctp.h

Print this page
rev 59383 : [mq]: final

*** 24,75 **** */ #ifndef SUN_NIO_CH_SCTP_H #define SUN_NIO_CH_SCTP_H - #ifdef __solaris__ - - #define _XPG4_2 - #define __EXTENSIONS__ - #include <sys/socket.h> - #include <netinet/sctp.h> - #include "jni.h" - - /* Current Solaris headers don't comply with draft rfc */ - #ifndef SCTP_EOF - #define SCTP_EOF MSG_EOF - #endif - - #ifndef SCTP_UNORDERED - #define SCTP_UNORDERED MSG_UNORDERED - #endif - - /* The current version of the socket API extension shipped with Solaris does - * not define the following options that the Java API (optionally) supports */ - #ifndef SCTP_EXPLICIT_EOR - #define SCTP_EXPLICIT_EOR -1 - #endif - #ifndef SCTP_FRAGMENT_INTERLEAVE - #define SCTP_FRAGMENT_INTERLEAVE -1 - #endif - #ifndef SCTP_SET_PEER_PRIMARY_ADDR - #define SCTP_SET_PEER_PRIMARY_ADDR -1 - #endif - - /* Function types to support dynamic linking of socket API extension functions - * for SCTP. This is so that there is no linkage depandancy during build or - * runtime for libsctp.*/ - typedef int sctp_getladdrs_func(int sock, sctp_assoc_t id, void **addrs); - typedef int sctp_freeladdrs_func(void* addrs); - typedef int sctp_getpaddrs_func(int sock, sctp_assoc_t id, void **addrs); - typedef int sctp_freepaddrs_func(void *addrs); - typedef int sctp_bindx_func(int sock, void *addrs, int addrcnt, int flags); - typedef int sctp_peeloff_func(int sock, sctp_assoc_t id); - - - - #else /* __linux__ */ #include <stdint.h> #include <linux/types.h> #include <sys/socket.h> #include <netinet/in.h> #include "jni.h" --- 24,33 ----
*** 318,329 **** typedef int sctp_freepaddrs_func(struct sockaddr *addrs); typedef int sctp_bindx_func(int sd, struct sockaddr *addrs, int addrcnt, int flags); typedef int sctp_peeloff_func(int sock, sctp_assoc_t id); - #endif /* __linux__ */ - extern sctp_getladdrs_func* nio_sctp_getladdrs; extern sctp_freeladdrs_func* nio_sctp_freeladdrs; extern sctp_getpaddrs_func* nio_sctp_getpaddrs; extern sctp_freepaddrs_func* nio_sctp_freepaddrs; extern sctp_bindx_func* nio_sctp_bindx; --- 276,285 ----
< prev index next >