Lines Matching refs:rule
93 /* identify this rule. */
115 u_short fu_skipto_rule; /* SKIPTO command rule number */
127 void *next_rule_ptr ; /* next rule in case of match */
144 struct ip_fw rule; /* must be at offset 0 */
146 u_int dyn_type; /* type for dynamic rule */
149 #define IP_FW_GETNSRCP(rule) ((rule)->fw_nports & 0x0f)
150 #define IP_FW_SETNSRCP(rule, n) do { \
151 (rule)->fw_nports &= ~0x0f; \
152 (rule)->fw_nports |= (n); \
154 #define IP_FW_GETNDSTP(rule) ((rule)->fw_nports >> 4)
155 #define IP_FW_SETNDSTP(rule, n) do { \
156 (rule)->fw_nports &= ~0xf0; \
157 (rule)->fw_nports |= (n) << 4;\
168 struct ip_fw *rule;
182 * dynamic ipfw rule
189 struct ip_fw_chain *chain ; /* pointer to parent rule */
190 u_int32_t type ; /* rule type */
194 u_int32_t state ; /* state of this rule (typ. a */
202 #define IP_FW_F_DENY 0x00000000 /* This is a deny rule */
204 #define IP_FW_F_ACCEPT 0x00000002 /* This is an accept rule */
205 #define IP_FW_F_COUNT 0x00000003 /* This is a count rule */
206 #define IP_FW_F_DIVERT 0x00000004 /* This is a divert rule */
207 #define IP_FW_F_TEE 0x00000005 /* This is a tee rule */
208 #define IP_FW_F_SKIPTO 0x00000006 /* This is a skipto rule */
209 #define IP_FW_F_FWD 0x00000007 /* This is a "change forwarding address" rule */
210 #define IP_FW_F_PIPE 0x00000008 /* This is a dummynet rule */
218 #define IP_FW_F_PRN 0x00001000 /* Print if this rule matches */
240 #define IP_FW_F_RND_MATCH 0x00800000 /* probabilistic rule match */