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.

72 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. net\ip\rtrmgr\priority\priority.h
  5. Abstract:
  6. IP Router Manager code
  7. Revision History:
  8. Gurdeep Singh Pall 7/19/95 Created
  9. --*/
  10. #include <nt.h>
  11. #include <ntrtl.h>
  12. #include <nturtl.h>
  13. #include <windows.h>
  14. #include <stdarg.h>
  15. #include <stdlib.h>
  16. #include <string.h>
  17. #include <dim.h>
  18. #include <routprot.h>
  19. #include <mprerror.h>
  20. #include <rtm.h>
  21. #include <fltdefs.h>
  22. #include <rtinfo.h>
  23. #include <ipinfoid.h>
  24. #include <iprtinfo.h>
  25. #include <iprtprio.h>
  26. #include <priopriv.h>
  27. #define HASH_TABLE_SIZE 17
  28. //
  29. // Block inserted into the hash table of protocol->metric mapping
  30. //
  31. struct RoutingProtocolBlock
  32. {
  33. LIST_ENTRY RPB_List ;
  34. PROTOCOL_METRIC RPB_ProtocolMetric ;
  35. };
  36. typedef struct RoutingProtocolBlock RoutingProtocolBlock ;
  37. //
  38. // pointer to memory holding all the protocol->metric mapping blocks
  39. //
  40. RoutingProtocolBlock *RoutingProtocolBlockPtr ;
  41. //
  42. // Lock for accessing protocol->metric mapping blocks
  43. //
  44. CRITICAL_SECTION PriorityLock ;
  45. //
  46. // Hash table for accessing protocol->metric mappings given the protocolid
  47. //
  48. LIST_ENTRY HashTable[HASH_TABLE_SIZE] ;
  49. //
  50. // Count of number of protocol->metric mappings
  51. //
  52. DWORD NumProtocols ;