< prev index next >

src/java.base/unix/native/libnet/net_util_md.h

Print this page




  88                          sizeof(struct sockaddr_in))
  89 
  90 #else
  91 
  92 #define SOCKADDR        union { struct sockaddr_in him4; }
  93 #define SOCKADDR_LEN    sizeof(SOCKADDR)
  94 
  95 #endif
  96 
  97 /************************************************************************
  98  *  Utilities
  99  */
 100 
 101 #ifdef __linux__
 102 int kernelIsV24();
 103 #ifdef AF_INET6
 104 int getDefaultIPv6Interface(struct in6_addr *target_addr);
 105 #endif
 106 #endif
 107 




 108 #ifdef __solaris__
 109 int net_getParam(char *driver, char *param);
 110 
 111 #ifndef SO_FLOW_SLA
 112 #define SO_FLOW_SLA 0x1018
 113 
 114 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
 115 #pragma pack(4)
 116 #endif
 117 
 118 /*
 119  * Used with the setsockopt(SO_FLOW_SLA, ...) call to set
 120  * per socket service level properties.
 121  * When the application uses per-socket API, we will enforce the properties
 122  * on both outbound and inbound packets.
 123  *
 124  * For now, only priority and maxbw are supported in SOCK_FLOW_PROP_VERSION1.
 125  */
 126 typedef struct sock_flow_props_s {
 127         int             sfp_version;




  88                          sizeof(struct sockaddr_in))
  89 
  90 #else
  91 
  92 #define SOCKADDR        union { struct sockaddr_in him4; }
  93 #define SOCKADDR_LEN    sizeof(SOCKADDR)
  94 
  95 #endif
  96 
  97 /************************************************************************
  98  *  Utilities
  99  */
 100 
 101 #ifdef __linux__
 102 int kernelIsV24();
 103 #ifdef AF_INET6
 104 int getDefaultIPv6Interface(struct in6_addr *target_addr);
 105 #endif
 106 #endif
 107 
 108 #ifdef __linux__
 109 #define SO_REUSEPORT 15
 110 #endif
 111 
 112 #ifdef __solaris__
 113 int net_getParam(char *driver, char *param);
 114 
 115 #ifndef SO_FLOW_SLA
 116 #define SO_FLOW_SLA 0x1018
 117 
 118 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
 119 #pragma pack(4)
 120 #endif
 121 
 122 /*
 123  * Used with the setsockopt(SO_FLOW_SLA, ...) call to set
 124  * per socket service level properties.
 125  * When the application uses per-socket API, we will enforce the properties
 126  * on both outbound and inbound packets.
 127  *
 128  * For now, only priority and maxbw are supported in SOCK_FLOW_PROP_VERSION1.
 129  */
 130 typedef struct sock_flow_props_s {
 131         int             sfp_version;


< prev index next >