Freigeben über


FW_RULE_MASKS (Windows CE 5.0)

Send Feedback

This enumeration defines values that specify rule masks. They are used in combination with each other to specify which fields of FW_RULE structure are valid. The dwMask member of FW_RULE uses a combination of these values.

typedef enum _FW_RULE_MASKS{  FWM_PRIVATE_HOST = 0x01,  FWM_PUBLIC_HOST = 0x02,  FWM_PORT = 0x04,  FWM_TYPE = 0x08,  FWM_CODE = 0x10,  FWM_PROTOCOL = 0x20  FWM_ACTION = 0x40,  FWM_TIME_OF_DAY = 0x80,  FWM_DAY_OF_WEEK = 0x100,  FWM_DAY = 0x200,  FWM_MONTH = 0x400,  FWM_PUBLIC_HOST_MASK= 0x800,  FWM_PUBLIC_HOST_PREFIX = 0x1000} FW_RULE_MASKS;

Elements

  • FWM_PRIVATE_HOST
    The PrivateHost mask of FW_RULE is specified and the rule applies only to packets to or from this host on the private side. If this mask is not set, the rule applies to packets to or from all hosts of the address family specified in PrivateHost.Family, IPv4 or IPv6.
  • FWM_PUBLIC_HOST
    The PublicHost mask of FW_RULE is specified and the rule applies only to packets to or from this host on the public side. If this mask is not set, the rule applies to packets to or from any host.
  • FWM_PORT
    The rule applies to packets destined to a TCP or UDP port in a specified range. The range is specified by the PortMin and PortMax masks of FW_RULE.
  • FWM_TYPE
    The rule applies only to packets of specified ICMP type. The type is specified by Type mask of FW_RULE.
  • FWM_CODE
    The rule applies only to packets with the specified ICMP code. The type is specified by Code mask of FW_RULE.
  • FWM_PROTOCOL
    The rule applies to a specific protocol. The type is specified by Protocol mask of FW_RULE.
  • FWM_ACTION
    The rule applies only to packets that are blocked or allowed as indicated by the Action member of FW_RULE. This mask is valid only for logging rules.
  • FWM_TIME_OF_DAY
    The rule is active a specific time of day, as specified by wHourStart and wHourEnd masks in FW_RULE.
  • FWM_DAY_OF_WEEK
    The rule is active on specific days of the week, as specified by wDaysOfWeek mask in FW_RULE.
  • FWM_DAY
    The rule is active on specific days of the month specified in the wDay member of FW_RULE.
  • FWM_MONTH
    The rule is active on specific months of the year specified in the wMonth mask in FW_RULE.
  • FWM_PUBLIC_HOST_MASK
    This element is used for IPv4 with FWM_PUBLIC_HOST to specify that the rule applies to any traffic from a specific IPv4 subnet. The subnet is specified by the IP address in the PublicHost mask and the subnet mask in the PublicHostMask mask of FW_RULE.
  • FWM_PUBLIC_HOST_PREFIX
    This element is used for IPv6 with FWM_PUBLIC_HOST to specify that the rule applies to any traffic from a specific IPv6 subnet. The subnet is specified by the IP address prefix in the PublicHost mask and the prefix length in the PublicHostPrefixLength mask of FW_RULE.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Rules.h.

See Also

IP Firewall Enumerations

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.