< prev index next >

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

Print this page




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 #include <winsock2.h>
  26 #include <WS2tcpip.h>
  27 #include <iphlpapi.h>
  28 #include <icmpapi.h>
  29 #include <mstcpip.h>

  30 
  31 /* used to disable connection reset messages on Windows XP */
  32 #ifndef SIO_UDP_CONNRESET
  33 #define SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR,12)
  34 #endif
  35 
  36 #ifndef IN6_IS_ADDR_ANY
  37 #define IN6_IS_ADDR_ANY(a)      \
  38     (((a)->s6_words[0] == 0) && ((a)->s6_words[1] == 0) &&      \
  39     ((a)->s6_words[2] == 0) && ((a)->s6_words[3] == 0) &&       \
  40     ((a)->s6_words[4] == 0) && ((a)->s6_words[5] == 0) &&       \
  41     ((a)->s6_words[6] == 0) && ((a)->s6_words[7] == 0))
  42 #endif
  43 
  44 #ifndef IPV6_V6ONLY
  45 #define IPV6_V6ONLY     27 /* Treat wildcard bind as AF_INET6-only. */
  46 #endif
  47 
  48 #define MAX_BUFFER_LEN          2048
  49 #define MAX_HEAP_BUFFER_LEN     65536




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 #include <winsock2.h>
  26 #include <WS2tcpip.h>
  27 #include <iphlpapi.h>
  28 #include <icmpapi.h>
  29 #include <mstcpip.h>
  30 #include <afunix.h>
  31 
  32 /* used to disable connection reset messages on Windows XP */
  33 #ifndef SIO_UDP_CONNRESET
  34 #define SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR,12)
  35 #endif
  36 
  37 #ifndef IN6_IS_ADDR_ANY
  38 #define IN6_IS_ADDR_ANY(a)      \
  39     (((a)->s6_words[0] == 0) && ((a)->s6_words[1] == 0) &&      \
  40     ((a)->s6_words[2] == 0) && ((a)->s6_words[3] == 0) &&       \
  41     ((a)->s6_words[4] == 0) && ((a)->s6_words[5] == 0) &&       \
  42     ((a)->s6_words[6] == 0) && ((a)->s6_words[7] == 0))
  43 #endif
  44 
  45 #ifndef IPV6_V6ONLY
  46 #define IPV6_V6ONLY     27 /* Treat wildcard bind as AF_INET6-only. */
  47 #endif
  48 
  49 #define MAX_BUFFER_LEN          2048
  50 #define MAX_HEAP_BUFFER_LEN     65536


< prev index next >