Lines Matching defs:rule
43 @discussion The event code indicating a rule has been added.
49 @discussion The event code indicating a rule has been removed.
55 @discussion The event code indicating the rule set has been flushed.
154 O_SKIPTO, /* arg1=next rule number */
314 * Here we have the structure representing an ipfw rule.
320 * Given a rule pointer r:
324 * once a rule matched).
328 * + if a rule has a "keep-state" (or "limit") option, then the
330 * + if a rule has a "log" option, then the first action
334 * to delete a rule without scanning the list. We do not use
343 /* identify this rule. */
345 struct ip_fw *next_rule; /* ptr to next [skipto] rule */
350 u_int16_t rulenum; /* rule number */
351 u_int8_t set; /* rule set (0..31) */
367 #define ACTION_PTR(rule) \
368 (ipfw_insn *)( (u_int32_t *)((rule)->cmd) + ((rule)->act_ofs) )
370 #define RULESIZE(rule) (sizeof(struct ip_fw) + \
371 ((struct ip_fw *)(rule))->cmd_len * 4 - 4)
387 * Dynamic ipfw rule.
393 struct ip_fw *rule; /* pointer to rule */
394 /* 'rule' is used to pass up the rule number (from the parent) */
396 ipfw_dyn_rule *parent; /* pointer to parent rule */
402 u_int32_t state; /* state of this rule (typically a
408 u_int16_t dyn_type; /* rule type */
450 struct ip_fw *rule; /* matching rule */