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.

86 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. structs.h
  5. Abstract:
  6. This module contains all of the internal structures
  7. for IPSecSPD Service.
  8. Author:
  9. abhisheV 30-September-1999
  10. Environment
  11. User Level: Win32
  12. Revision History:
  13. --*/
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define TCP_PROTOCOL 6
  18. #define UDP_PROTOCOL 17
  19. #define WEIGHT_ADDRESS_TIE_BREAKER 0x00000001
  20. #define WEIGHT_SPECIFIC_SOURCE_PORT 0x00000002
  21. #define WEIGHT_SPECIFIC_DESTINATION_PORT 0x00000004
  22. #define WEIGHT_SPECIFIC_PROTOCOL 0x00000100
  23. #define WEIGHT_TUNNEL_FILTER 0x00001000
  24. #define WEIGHT_SPECIFIC_TUNNEL_FILTER 0x00002000
  25. typedef struct _IPSEC_INTERFACE {
  26. DWORD dwInterfaceType;
  27. ULONG IpAddress;
  28. DWORD dwIndex;
  29. BOOL bIsASuspect;
  30. GUID gInterfaceID;
  31. LPWSTR pszInterfaceName;
  32. LPWSTR pszDeviceName;
  33. struct _IPSEC_INTERFACE * pNext;
  34. } IPSEC_INTERFACE, * PIPSEC_INTERFACE;
  35. typedef struct _matching_addr {
  36. ULONG uIpAddr;
  37. GUID gInterfaceID;
  38. } MATCHING_ADDR, * PMATCHING_ADDR;
  39. typedef struct _SPECIAL_ADDR {
  40. ADDR_TYPE AddrType;
  41. ULONG uIpAddr;
  42. IF_TYPE InterfaceType;
  43. BOOL bDupInterface;
  44. struct _SPECIAL_ADDR * pNext;
  45. } SPECIAL_ADDR, * PSPECIAL_ADDR;
  46. typedef struct _ADDR_V4 {
  47. ADDR_TYPE AddrType;
  48. ULONG uIpAddr;
  49. ULONG uSubNetMask;
  50. GUID gInterfaceID;
  51. } ADDR_V4, * PADDR_V4;
  52. #ifdef __cplusplus
  53. }
  54. #endif