다음을 통해 공유


2.2.34 FW_RULE_ACTION

This enumeration describes the possible actions on firewall rules.

 typedef  enum _tag_FW_RULE_ACTION
 {
   FW_RULE_ACTION_INVALID = 0,
   FW_RULE_ACTION_ALLOW_BYPASS = 1,
   FW_RULE_ACTION_BLOCK = 2,
   FW_RULE_ACTION_ALLOW = 3,
   FW_RULE_ACTION_MAX = 4
 } FW_RULE_ACTION;

FW_RULE_ACTION_INVALID:  This value is invalid and MUST NOT be used. It is defined for simplicity in writing IDL definitions and code. This symbolic constant has a value of 0.

FW_RULE_ACTION_ALLOW_BYPASS:  Rules with this action allow traffic but are applicable only to rules that at least specify the FW_RULE_FLAGS_AUTHENTICATE flag. This symbolic constant has a value of 1.

FW_RULE_ACTION_BLOCK:  Rules with this action block traffic. This symbolic constant has a value of 2.

FW_RULE_ACTION_ALLOW:  Rules with this action allow traffic. This symbolic constant has a value of 3.

FW_RULE_ACTION_MAX:  This value and values that exceed this value are not valid and MUST NOT be used. It is defined for simplicity in writing IDL definitions and code. This symbolic constant has a value of 4.

If conflicting rules match the same network traffic, the actions determine the order of precedence. Allow-bypass rules take precedence over block rules, and block rules take precedence over allow rules.