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.

136 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. D:\nt\private\ntos\tdi\rawwan\atm\rwanatm.h
  5. Abstract:
  6. Winsock 2 ATM definitions.
  7. Revision History:
  8. Who When What
  9. -------- -------- ----------------------------------------------
  10. arvindm 06-18-97 Created
  11. Notes:
  12. --*/
  13. #ifndef __TDI_ATM_RWANATM__H
  14. #define __TDI_ATM_RWANATM__H
  15. typedef struct _ATMSP_WSABUF
  16. {
  17. ULONG len;
  18. PCHAR buf;
  19. } ATMSP_WSABUF, *PATMSP_WSABUF;
  20. typedef struct _ATMSP_QUALITY_OF_SERVICE
  21. {
  22. FLOWSPEC SendingFlowSpec;
  23. FLOWSPEC ReceivingFlowSpec;
  24. ATMSP_WSABUF ProviderSpecific;
  25. } ATMSP_QOS, *PATMSP_QOS;
  26. typedef struct _ATMSP_BLLI
  27. {
  28. ULONG Layer2Protocol;
  29. ULONG Layer2UserSpecifiedProtocol;
  30. ULONG Layer3Protocol;
  31. ULONG Layer3UserSpecifiedProtocol;
  32. ULONG Layer3IPI;
  33. UCHAR SnapId[5];
  34. } ATMSP_BLLI, *PATMSP_BLLI;
  35. typedef struct _ATMSP_BHLI
  36. {
  37. ULONG HighLayerInfoType;
  38. ULONG HighLayerInfoLength;
  39. UCHAR HighLayerInfo[8];
  40. } ATMSP_BHLI, *PATMSP_BHLI;
  41. typedef struct _atmsp_sockaddr_atm
  42. {
  43. ATM_ADDRESS satm_number;
  44. ATMSP_BLLI satm_blli;
  45. ATMSP_BHLI satm_bhli;
  46. } ATMSP_SOCKADDR_ATM, *LPATMSP_SOCKADDR_ATM;
  47. #define ATMSP_AF_ATM 22
  48. #define TDI_ADDRESS_TYPE_ATM ATMSP_AF_ATM
  49. #define ATMSP_ATMPROTO_AAL5 0x05
  50. #define ATMSP_SOCK_TYPE 1
  51. #define SOCKATM_E164 1
  52. #define SOCKATM_NSAP 2
  53. typedef struct _atmsp_connection_id
  54. {
  55. ULONG DeviceNumber;
  56. ULONG Vpi;
  57. ULONG Vci;
  58. } ATMSP_CONNECTION_ID, *PATMSP_CONNECTION_ID;
  59. //
  60. // Winsock2/ATM AAL parameter definition:
  61. //
  62. typedef enum {
  63. ATMSP_AALTYPE_5 = 5,
  64. ATMSP_AALTYPE_USER = 16
  65. } ATMSP_AAL_TYPE, *PATMSP_AAL_TYPE;
  66. typedef struct
  67. {
  68. ULONG ForwardMaxCPCSSDUSize;
  69. ULONG BackwardMaxCPCSSDUSize;
  70. UCHAR Mode;
  71. UCHAR SSCSType;
  72. } ATMSP_AAL5_PARAMETERS, *PATMSP_AAL5_PARAMETERS;
  73. typedef struct {
  74. ULONG UserDefined;
  75. } ATMSP_AALUSER_PARAMETERS, *PATMSP_AALUSER_PARAMETERS;
  76. typedef struct _atmsp_aal_parameters_ie
  77. {
  78. ATMSP_AAL_TYPE AALType;
  79. union {
  80. ATMSP_AAL5_PARAMETERS AAL5Parameters;
  81. ATMSP_AALUSER_PARAMETERS AALUserParameters;
  82. } AALSpecificParameters;
  83. } ATMSP_AAL_PARAMETERS_IE, *PATMSP_AAL_PARAMETERS_IE;
  84. //
  85. // Winsock2/ATM Broadband bearer capability code definitions.
  86. // The BearerClass codes are different.
  87. //
  88. #define ATMSP_BCOB_A 0x01
  89. #define ATMSP_BCOB_C 0x03
  90. #define ATMSP_BCOB_X 0x10
  91. #endif // __TDI_ATM_RWANATM__H