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.

67 lines
1.3 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. private\inc\ipfltinf.h
  5. Abstract:
  6. Stuff needed for filtering/firewall/demand dial support in user mode
  7. Kernel mode only stuff is in ntos\inc\ipfilter.h
  8. Revision History:
  9. --*/
  10. #ifndef __IPFLTINF_H__
  11. #define __IPFLTINF_H__
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif
  15. typedef void *INTERFACE_CONTEXT; // Context in an inteface
  16. //
  17. // Enum for values that may be returned from filter routine.
  18. //
  19. typedef enum _FORWARD_ACTION
  20. {
  21. FORWARD = 0,
  22. DROP = 1,
  23. ICMP_ON_DROP = 2
  24. } FORWARD_ACTION;
  25. typedef enum _ACTION_E
  26. {
  27. ICMP_DEST_UNREACHABLE_ON_DROP = 0x1
  28. } ACTION_E, *PACTION_E;
  29. //
  30. // Actions that are returned to IP from IPSEC for a packet.
  31. //
  32. typedef enum _IPSEC_ACTION
  33. {
  34. eFORWARD = 0,
  35. eDROP,
  36. eABSORB,
  37. eBACKFILL_NOT_SUPPORTED
  38. } IPSEC_ACTION, *PIPSEC_ACTION;
  39. //
  40. // Structure passed to the IPSetInterfaceContext call.
  41. //
  42. typedef struct _IP_SET_IF_CONTEXT_INFO
  43. {
  44. unsigned int Index; // Inteface index for i/f to be set.
  45. INTERFACE_CONTEXT *Context; // Context for inteface.
  46. IPAddr NextHop;
  47. } IP_SET_IF_CONTEXT_INFO, *PIP_SET_IF_CONTEXT_INFO;
  48. #endif //__IPFLTINF_H__