Source code of Windows XP (NT5)
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.

164 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. ipinip\adapter.h
  5. Abstract:
  6. Forward declarations for functions in adapter.c
  7. Revision History:
  8. AmritanR
  9. --*/
  10. #ifndef __IPINIP_ADAPTER_H__
  11. #define __IPINIP_ADAPTER_H__
  12. #define TCPIP_INTERFACES_KEY L"Tcpip\\Parameters\\Interfaces\\"
  13. BOOLEAN
  14. IsBindingPresent(
  15. PUNICODE_STRING pusBindName
  16. );
  17. #if DBG
  18. NTSTATUS
  19. CreateTunnel(
  20. IN PNDIS_STRING pnsBindName,
  21. OUT TUNNEL **ppNewTunnel,
  22. IN PANSI_STRING pasAnsiName
  23. );
  24. #else
  25. NTSTATUS
  26. CreateTunnel(
  27. IN PNDIS_STRING pnsBindName,
  28. OUT TUNNEL **ppNewTunnel
  29. );
  30. #endif
  31. VOID
  32. IpIpOpenAdapter(
  33. PVOID pvContext
  34. );
  35. VOID
  36. IpIpCloseAdapter(
  37. PVOID pvContext
  38. );
  39. UINT
  40. IpIpAddAddress(
  41. PVOID pvContext,
  42. UINT uiType,
  43. DWORD dwAddress,
  44. DWORD dwMask,
  45. PVOID pvUnused
  46. );
  47. UINT
  48. IpIpDeleteAddress(
  49. PVOID pvContext,
  50. UINT uiType,
  51. DWORD dwAddress,
  52. DWORD dwMask
  53. );
  54. INT
  55. IpIpQueryInfo(
  56. PVOID pvIfContext,
  57. TDIObjectID *pTdiObjId,
  58. PNDIS_BUFFER pnbBuffer,
  59. PUINT puiSize,
  60. PVOID pvContext
  61. );
  62. INT
  63. IpIpSetInfo(
  64. PVOID pvContext,
  65. TDIObjectID *pTdiObjId,
  66. PVOID pvBuffer,
  67. UINT uiSize
  68. );
  69. INT
  70. IpIpGetEntityList(
  71. PVOID pvContext,
  72. TDIEntityID *pTdiEntityList,
  73. PUINT puiCount
  74. );
  75. INT
  76. IpIpDynamicRegister(
  77. PNDIS_STRING InterfaceName,
  78. PVOID pvIpInterfaceContext,
  79. struct _IP_HANDLERS * IpHandlers,
  80. struct LLIPBindInfo * ARPBindInfo,
  81. UINT uiInterfaceNumber
  82. );
  83. NTSTATUS
  84. AddInterfaceToIP(
  85. PTUNNEL pTunnel,
  86. PNDIS_STRING pnsName,
  87. PVOID pvSystemSpecific1,
  88. PVOID pvSystemSpecific2
  89. );
  90. VOID
  91. DeleteTunnel(
  92. PTUNNEL pTunnel
  93. );
  94. INT
  95. IpIpBindAdapter(
  96. PNDIS_STATUS pnsRetStatus,
  97. NDIS_HANDLE nhBindContext,
  98. PNDIS_STRING pnsAdapterName,
  99. PVOID pvSS1,
  100. PVOID pvSS2
  101. );
  102. PTUNNEL
  103. FindTunnel(
  104. PULARGE_INTEGER puliTunnelId
  105. );
  106. PTUNNEL
  107. FindTunnelGivenIndex(
  108. DWORD dwIfIndex
  109. );
  110. VOID
  111. RemoveAllTunnels(
  112. VOID
  113. );
  114. NTSTATUS
  115. AddInterfaceToIP2(
  116. IN PTUNNEL pTunnel,
  117. IN PNDIS_STRING pnsName
  118. );
  119. NTSTATUS
  120. IpIpCreateAdapter(
  121. IN PIPINIP_CREATE_TUNNEL pCreateInfo,
  122. IN USHORT usKeyLength,
  123. OUT PDWORD pdwIfIndex
  124. );
  125. #endif // __IPINIP_ADAPTER_H__