Partager via


2.2.5 RuleAction Structure

The RuleAction structure MUST have one or more blocks of a binary data to specify various actions (2) of the rule (2). The RuleAction structure has the following format for standard rules. The format for extended rules is the same except that the size of the NoOfActions field is 4 bytes instead of 2 bytes.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

NoOfActions

ActionBlocks (variable)

...

NoOfActions (2 bytes): Specifies the number of structures that are contained in the ActionBlocks field. This number MUST be greater than zero. For extended rules, the size of the NoOfActions field is 4 bytes instead of 2 bytes.

ActionBlocks (variable): An array of ActionBlock structures, each of which specifies an action (2) of the rule (2), as specified in section 2.2.5.1.