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.

74 lines
2.4 KiB

  1. // Copyright (c) 1997, Microsoft Corporation, all rights reserved
  2. //
  3. // l2tp.h
  4. //
  5. // Public header for NDIS 5.0 clients and call managers wishing to make calls
  6. // and register Service Access Points using L2TP, the Layer 2 Tunneling
  7. // Protocol.
  8. //
  9. // 01/07/97 Steve Cobb
  10. //
  11. //
  12. // About NdisClRegisterSap 'Sap':
  13. //
  14. // Clients registering an L2TP SAP via NdisClRegisterSap should pass for the
  15. // 'Sap' argument either NULL or an CO_AF_TAPI_SAP structure. L2TP currently
  16. // supports only a single SAP so the CO_AF_TAPI_SAP, if passed, will be
  17. // ignored.
  18. //
  19. //
  20. // About NdisClMakeCall 'CallParameters':
  21. //
  22. // Clients calling NdisClMakeCall on an L2TP VC should pass
  23. // CO_AF_TAPI_MAKE_CALL_PARAMETERS as the media specific CallParameters
  24. // argument, i.e. CallParameters->MediaParameters->MediaSpecific.Parameters.
  25. // An L2TP_CALL_PARAMETERS structure (below) should be passed in the
  26. // DevSpecificData field of the LINE_CALL_PARAMS within the above structure.
  27. // While it is recommended that caller provide L2TP_CALL_PARAMETERS, the
  28. // driver will accept calls made with none in which case defaults will be
  29. // used.
  30. #ifndef _L2TP_H_
  31. #define _L2TP_H_
  32. // CO_AF_TAPI_MAKE_CALL_PARAMETERS.LineCallParams.ulDevSpecificOffset for L2TP
  33. // calls. This is passed down on NdisClMakeCall and returned to client's
  34. // ClMakeCallCompleteHandler handler.
  35. //
  36. typedef struct
  37. _L2TP_CALL_PARAMETERS
  38. {
  39. // L2TPCPF_* bit flags indicating various call options.
  40. //
  41. // L2TPCPF_ExclusiveTunnel: Set when an exclusive tunnel is to be created
  42. // to the peer even if another tunnel already exists to the peer.
  43. //
  44. ULONG ulFlags;
  45. #define L2TPCPF_ExclusiveTunnel 0x00000001
  46. // The vendor-specific physical channel ID of the call reported to LNS by
  47. // LAC.
  48. //
  49. // To MakeCall: The ID reported to peer LNS, or 0xFFFFFFFF for none. This
  50. // has effect only if the OutgoingRole is LAC.
  51. //
  52. // From MakeCallCompleteHandler: The ID reported by the L2TP LAC or
  53. // 0xFFFFFFFF if none.
  54. //
  55. ULONG ulPhysicalChannelId;
  56. // The reasonably unique, progressively increasing call serial number
  57. // shared by both L2TP peers for troubleshooting.
  58. //
  59. // To MakeCall: Must be set to 0, though ignored.
  60. //
  61. // From MakeCallCompleteHandler: The number assigned to the call.
  62. //
  63. ULONG ulCallSerialNumber;
  64. }
  65. L2TP_CALL_PARAMETERS;
  66. #endif // _L2TP_H_