Lines Matching defs:rule
94 /* identify this rule. */
116 u_short fu_skipto_rule; /* SKIPTO command rule number */
128 void *next_rule_ptr ; /* next rule in case of match */
145 struct ip_fw rule; /* must be at offset 0 */
147 u_int dyn_type; /* type for dynamic rule */
150 #define IP_FW_GETNSRCP(rule) ((rule)->fw_nports & 0x0f)
151 #define IP_FW_SETNSRCP(rule, n) do { \
152 (rule)->fw_nports &= ~0x0f; \
153 (rule)->fw_nports |= (n); \
155 #define IP_FW_GETNDSTP(rule) ((rule)->fw_nports >> 4)
156 #define IP_FW_SETNDSTP(rule, n) do { \
157 (rule)->fw_nports &= ~0xf0; \
158 (rule)->fw_nports |= (n) << 4;\
169 struct ip_fw *rule;
183 * dynamic ipfw rule
190 struct ip_fw_chain *chain ; /* pointer to parent rule */
191 u_int32_t type ; /* rule type */
195 u_int32_t state ; /* state of this rule (typ. a */
203 #define IP_FW_F_DENY 0x00000000 /* This is a deny rule */
205 #define IP_FW_F_ACCEPT 0x00000002 /* This is an accept rule */
206 #define IP_FW_F_COUNT 0x00000003 /* This is a count rule */
207 #define IP_FW_F_DIVERT 0x00000004 /* This is a divert rule */
208 #define IP_FW_F_TEE 0x00000005 /* This is a tee rule */
209 #define IP_FW_F_SKIPTO 0x00000006 /* This is a skipto rule */
210 #define IP_FW_F_FWD 0x00000007 /* This is a "change forwarding address" rule */
211 #define IP_FW_F_PIPE 0x00000008 /* This is a dummynet rule */
219 #define IP_FW_F_PRN 0x00001000 /* Print if this rule matches */
241 #define IP_FW_F_RND_MATCH 0x00800000 /* probabilistic rule match */