Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
3.3 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. wsipv6ok.h
  5. Abstract:
  6. This module contains defines used to flag usage of IPv6 incompatible
  7. defines, stuctures and functions. They cause *cryptic* compile time
  8. error messages to be generated. Currently, this header is only
  9. included from winsock2.h.
  10. NOTE: The compile time flag, IPV6STRICT, must be defined.
  11. --*/
  12. #ifndef _WSIPV6OK_
  13. #define _WSIPV6OK_
  14. #pragma once
  15. #ifdef IPV6STRICT
  16. //
  17. // prevent substitutions in these headers by including them first.
  18. //
  19. #include <ws2tcpip.h>
  20. #include <wspiapi.h>
  21. #undef AF_INET
  22. #define AF_INET AF_INET_IPV6INCOMPATIBLE
  23. #undef PF_INET
  24. #define PF_INET PF_INET_IPV6INCOMPATIBLE
  25. #undef in_addr
  26. #define in_addr in_addr_IPV6INCOMPATIBLE
  27. #undef IN_ADDR
  28. #define IN_ADDR IN_ADDR_IPV6INCOMPATIBLE
  29. #undef PIN_ADDR
  30. #define PIN_ADDR PIN_ADDR_IPV6INCOMPATIBLE
  31. #undef LPIN_ADDR
  32. #define LPIN_ADDR LPIN_ADDR_IPV6INCOMPATIBLE
  33. #undef IPAddr
  34. #define IPAddr IPAddr_IPV6INCOMPATIBLE
  35. #undef sockaddr_in
  36. #define sockaddr_in sockaddr_in_IPV6INCOMPATIBLE
  37. #undef SOCKADDR_IN
  38. #define SOCKADDR_IN SOCKADDR_IN_IPV6INCOMPATIBLE
  39. #undef PSOCKADDR_IN
  40. #define PSOCKADDR_IN PSOCKADDR_IN_IPV6INCOMPATIBLE
  41. #undef LPSOCKADDR_IN
  42. #define LPSOCKADDR_IN LPSOCKADDR_IN_IPV6INCOMPATIBLE
  43. #undef INADDR_ANY
  44. #define INADDR_ANY INADDR_ANY_IPV6INCOMPATIBLE
  45. #undef INADDR_LOOPBACK
  46. #define INADDR_LOOPBACK INADDR_LOOPBACK_IPV6INCOMPATIBLE
  47. #undef IPPROTO_IP
  48. #define IPPROTO_IP IPPROTO_IP_IPV6INCOMPATIBLE
  49. #undef IP_MULTICAST_IF
  50. #define IP_MULTICAST_IF IP_MULTICAST_IF_IPV6INCOMPATIBLE
  51. #undef IP_MULTICAST_TTL
  52. #define IP_MULTICAST_TTL IP_MULTICAST_TTL_IPV6INCOMPATIBLE
  53. #undef IP_MULTICAST_LOOP
  54. #define IP_MULTICAST_LOOP IP_MULTICAST_LOOP_IPV6INCOMPATIBLE
  55. #undef IP_ADD_MEMBERSHIP
  56. #define IP_ADD_MEMBERSHIP IP_ADD_MEMBERSHIP_IPV6INCOMPATIBLE
  57. #undef IP_DROP_MEMBERSHIP
  58. #define IP_DROP_MEMBERSHIP IP_DROP_MEMBERSHIP_IPV6INCOMPATIBLE
  59. #undef ip_mreq
  60. #define ip_mreq ip_mreq_IPV6INCOMPATIBLE
  61. #undef gethostbyname
  62. #define gethostbyname(a) gethostbyname_IPV6INCOMPATIBLE
  63. #undef hostent
  64. #define hostent hostent_IPV6INCOMPATIBLE
  65. #undef HOSTENT
  66. #define HOSTENT HOSTENT_IPV6INCOMPATIBLE
  67. #undef PHOSTENT
  68. #define PHOSTENT PHOSTENT_IPV6INCOMPATIBLE
  69. #undef LPHOSTENT
  70. #define LPHOSTENT LPHOSTENT_IPV6INCOMPATIBLE
  71. #undef inet_addr
  72. #define inet_addr(a) inet_addr_IPV6INCOMPATIBLE
  73. #undef gethostbyaddr
  74. #define gethostbyaddr(a,b,c) gethostbyaddr_IPV6INCOMPATIBLE
  75. #undef inet_ntoa
  76. #define inet_ntoa(a) inet_ntoa_IPV6INCOMPATIBLE
  77. #undef IN_MULTICAST
  78. #define IN_MULTICAST(a) IN_MULTICAST_IPV6INCOMPATIBLE
  79. #undef IN_CLASSD
  80. #define IN_CLASSD(a) IN_CLASSD_IPV6INCOMPATIBLE
  81. #undef IP_TTL
  82. #define IP_TTL IP_TTL_IPV6INCOMPATIBLE
  83. #undef IN_CLASSA
  84. #define IN_CLASSA(a) IN_CLASSA_IPV6INCOMPATIBLE
  85. #undef IN_CLASSB
  86. #define IN_CLASSB(a) IN_CLASSB_IPV6INCOMPATIBLE
  87. #undef IN_CLASSC
  88. #define IN_CLASSC(a) IN_CLASSC_IPV6INCOMPATIBLE
  89. #undef INADDR_BROADCAST
  90. #define INADDR_BROADCAST(a) INADDR_BROADCAST_IPV6INCOMPATIBLE
  91. #undef WSAAsyncGetHostByAddr
  92. #define WSAAsyncGetHostByAddr(a,b,c,d,e,f,g) WSAAsyncGetHostByAddr_IPV6INCOMPATIBLE
  93. #undef WSAAsyncGetHostByName
  94. #define WSAAsyncGetHostByName(a,b,c,d,e) WSAAsyncGetHostByName_IPV6INCOMPATIBLE
  95. #endif // IPV6STRICT
  96. #endif // _WSIPV6OK_