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.

155 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. routing\ip\rtrmgr\demand.h
  5. Abstract:
  6. Header for demand.c
  7. Revision History:
  8. Gurdeep Singh Pall 6/8/95 Created
  9. --*/
  10. #define REGISTRY_WANARP_LINKAGE \
  11. "System\\CurrentControlSet\\Services\\WanArp\\Linkage"
  12. #define REGISTRY_BIND_VALUE_NAME \
  13. "Bind"
  14. #define SERVER_ADAPTER_SUBSTRING \
  15. "NDISWANIPIN"
  16. #define REGISTRY_ROUTER_SERVICE_KEY \
  17. "System\\CurrentControlSet\\Services\\Router\\"
  18. DWORD
  19. InitializeWanArp(
  20. VOID
  21. );
  22. VOID
  23. CloseWanArp(
  24. VOID
  25. );
  26. DWORD
  27. AddInterfaceToWanArp(
  28. PICB picb
  29. );
  30. DWORD
  31. HandleDemandDialEvent(
  32. VOID
  33. );
  34. VOID
  35. HandleConnectionRequest(
  36. PICB picb
  37. );
  38. VOID
  39. HandleConnectionNotification(
  40. PICB picb
  41. );
  42. VOID
  43. HandleDisconnectionNotification(
  44. PICB picb
  45. );
  46. DWORD
  47. HandleDialOutLinkUp(
  48. VOID
  49. );
  50. DWORD
  51. CreateDialOutInterface(
  52. IN PWCHAR pwszIfName,
  53. IN DWORD dwIfIndex,
  54. IN DWORD dwLocalAddress,
  55. IN DWORD dwLocalMask,
  56. IN DWORD dwRemoteAddr,
  57. OUT ICB **ppIcb
  58. );
  59. DWORD
  60. HandleDialOutLinkDown(
  61. VOID
  62. );
  63. NTSTATUS
  64. NotifyWanarpOfFailure(
  65. PICB picb
  66. );
  67. DWORD
  68. ProcessPacketFromWanArp(
  69. PICB picb
  70. );
  71. DWORD
  72. PostIoctlForDemandDialNotification(
  73. VOID
  74. );
  75. DWORD
  76. DeleteInterfaceWithWanArp(
  77. PICB picb
  78. );
  79. DWORD
  80. DisableInterfaceWithWanArp(
  81. PICB picb
  82. );
  83. DWORD
  84. AddDemandFilterInterface(
  85. PICB picb,
  86. PRTR_INFO_BLOCK_HEADER pInterfaceInfo
  87. );
  88. DWORD
  89. DeleteDemandFilterInterface(
  90. PICB picb
  91. );
  92. DWORD
  93. SetDemandDialFilters(
  94. PICB picb,
  95. PRTR_INFO_BLOCK_HEADER pInterfaceInfo
  96. );
  97. DWORD
  98. GetDemandFilters(
  99. PICB picb,
  100. PRTR_TOC_ENTRY pToc,
  101. PBYTE pbDataPtr,
  102. PRTR_INFO_BLOCK_HEADER pInfoHdrAndBuffer,
  103. PDWORD pdwSize
  104. );
  105. VOID
  106. TryUpdateInternalInterface(
  107. VOID
  108. );
  109. DWORD
  110. DeleteInternalInterface(
  111. VOID
  112. );
  113. DWORD
  114. AccessIfEntryWanArp(
  115. IN DWORD dwAction,
  116. IN PICB picb,
  117. IN OUT PMIB_IFROW lpOutBuf
  118. );