• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netinet/

Lines Matching defs:rule

10 int		ipfw_convert_to_latest(struct sockopt *sopt, struct ip_fw *rule, int api_version);
54 /* identify this rule. */
76 u_short fu_skipto_rule; /* SKIPTO command rule number */
88 void *next_rule_ptr ; /* next rule in case of match */
105 struct ip_fw rule; /* must be at offset 0 */
107 u_int dyn_type; /* type for dynamic rule */
112 struct ip_fw_compat *rule;
116 * dynamic ipfw rule
123 struct ip_fw_chain_compat *chain ; /* pointer to parent rule */
124 u_int32_t type ; /* rule type */
128 u_int32_t state ; /* state of this rule (typ. a */
132 #define IP_FW_GETNSRCP_COMPAT(rule) ((rule)->fw_nports & 0x0f)
133 #define IP_FW_SETNSRCP_COMPAT(rule, n) do { \
134 (rule)->fw_nports &= ~0x0f; \
135 (rule)->fw_nports |= (n); \
137 #define IP_FW_GETNDSTP_COMPAT(rule) ((rule)->fw_nports >> 4)
138 #define IP_FW_SETNDSTP_COMPAT(rule, n) do { \
139 (rule)->fw_nports &= ~0xf0; \
140 (rule)->fw_nports |= (n) << 4;\
153 #define IP_FW_F_DENY_COMPAT 0x00000000 /* This is a deny rule */
155 #define IP_FW_F_ACCEPT_COMPAT 0x00000002 /* This is an accept rule */
156 #define IP_FW_F_COUNT_COMPAT 0x00000003 /* This is a count rule */
157 #define IP_FW_F_DIVERT_COMPAT 0x00000004 /* This is a divert rule */
158 #define IP_FW_F_TEE_COMPAT 0x00000005 /* This is a tee rule */
159 #define IP_FW_F_SKIPTO_COMPAT 0x00000006 /* This is a skipto rule */
160 #define IP_FW_F_FWD_COMPAT 0x00000007 /* This is a "change forwarding address" rule */
161 #define IP_FW_F_PIPE_COMPAT 0x00000008 /* This is a dummynet rule */
169 #define IP_FW_F_PRN_COMPAT 0x00001000 /* Print if this rule matches */
191 #define IP_FW_F_RND_MATCH_COMPAT 0x00800000 /* probabilistic rule match */
291 u_short fu_skipto_rule; /* SKIPTO command rule number */
301 void *next_rule_ptr ; /* next rule in case of match */
304 #define IP_OLD_FW_GETNSRCP(rule) ((rule)->fw_nports & 0x0f)
305 #define IP_OLD_FW_SETNSRCP(rule, n) do { \
306 (rule)->fw_nports &= ~0x0f; \
307 (rule)->fw_nports |= (n); \
309 #define IP_OLD_FW_GETNDSTP(rule) ((rule)->fw_nports >> 4)
310 #define IP_OLD_FW_SETNDSTP(rule, n) do { \
311 (rule)->fw_nports &= ~0xf0; \
312 (rule)->fw_nports |= (n) << 4;\
325 #define IP_OLD_FW_F_DENY 0x00000000 /* This is a deny rule */
327 #define IP_OLD_FW_F_ACCEPT 0x00000002 /* This is an accept rule */
328 #define IP_OLD_FW_F_COUNT 0x00000003 /* This is a count rule */
329 #define IP_OLD_FW_F_DIVERT 0x00000004 /* This is a divert rule */
330 #define IP_OLD_FW_F_TEE 0x00000005 /* This is a tee rule */
331 #define IP_OLD_FW_F_SKIPTO 0x00000006 /* This is a skipto rule */
332 #define IP_OLD_FW_F_FWD 0x00000007 /* This is a "change forwarding address" rule */
333 #define IP_OLD_FW_F_PIPE 0x00000008 /* This is a dummynet rule */
340 #define IP_OLD_FW_F_PRN 0x00001000 /* Print if this rule matches */