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.

65 lines
1.2 KiB

  1. /*
  2. Copyright (c) 1998, Microsoft Corporation, all rights reserved
  3. Description:
  4. History:
  5. */
  6. #ifndef _RASSTAT__H_
  7. #define _RASSTAT__H_
  8. #include "rasiphlp_.h"
  9. #include <raserror.h>
  10. #include <winsock2.h>
  11. #include <stdio.h>
  12. #include <rasman.h>
  13. #include "helper.h"
  14. #include "tcpreg.h"
  15. #include "rastcp.h"
  16. #include "rasstat.h"
  17. typedef struct _IPADDR_NODE
  18. {
  19. struct _IPADDR_NODE* pNext;
  20. HPORT hPort; // For diagnostic purposes
  21. IPADDR hboIpAddr;
  22. } IPADDR_NODE;
  23. IPADDR_NODE* RasStatAllocPool = NULL;
  24. IPADDR_NODE* RasStatFreePool = NULL;
  25. ADDR_POOL* RasStatCurrentPool = NULL;
  26. // This critical section controls access to the above global variables
  27. extern CRITICAL_SECTION RasStatCriticalSection;
  28. VOID
  29. rasStatDeleteLists(
  30. VOID
  31. );
  32. VOID
  33. rasStatAllocateAddresses(
  34. VOID
  35. );
  36. BOOL
  37. rasStatBadAddress(
  38. IPADDR hboIpAddr
  39. );
  40. VOID
  41. rasStatCreatePoolListFromOldValues(
  42. IN OUT ADDR_POOL** ppAddrPoolOut
  43. );
  44. IPADDR
  45. rasStatMaskFromAddrPair(
  46. IN IPADDR hboFirstIpAddr,
  47. IN IPADDR hboLastIpAddr
  48. );
  49. #endif // #ifndef _RASSTAT__H_