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

Lines Matching defs:curr_rule

923 ipfw_map_from_cmds(struct ip_fw *curr_rule, struct ip_fw_compat *compat_rule)
928 for (l = curr_rule->act_ofs, cmd = curr_rule->cmd ;
1203 ipfw_map_from_actions(struct ip_fw *curr_rule, struct ip_fw_compat *compat_rule)
1208 for (l = curr_rule->cmd_len - curr_rule->act_ofs, cmd = ACTION_PTR(curr_rule);
1267 ipfw_version_latest_to_one(struct ip_fw *curr_rule, struct ip_fw_compat *rule_vers1)
1275 rule_vers1->context = curr_rule->context;
1276 rule_vers1->fw_number = curr_rule->rulenum;
1277 rule_vers1->fw_pcnt = curr_rule->pcnt;
1278 rule_vers1->fw_bcnt = curr_rule->bcnt;
1279 rule_vers1->timestamp = curr_rule->timestamp;
1282 ipfw_map_from_actions(curr_rule, rule_vers1);
1285 ipfw_map_from_cmds(curr_rule, rule_vers1);
1294 ipfw_version_latest_to_zero(struct ip_fw *curr_rule, struct ip_old_fw *rule_vers0)
1298 ipfw_version_latest_to_one(curr_rule, &rule_vers1);
1328 ipfw_convert_from_latest(struct ip_fw *curr_rule, void *old_rule, u_int32_t api_version)
1335 ipfw_version_latest_to_zero(curr_rule, rule_vers0);
1342 ipfw_version_latest_to_one(curr_rule, rule_vers1);
1511 ipfw_convert_to_cmds(struct ip_fw *curr_rule, struct ip_fw_compat *compat_rule)
1518 if (!compat_rule || !curr_rule || !(curr_rule->cmd)) {
1984 dst = curr_rule->cmd;
2028 curr_rule->act_ofs = dst - curr_rule->cmd;
2049 curr_rule->cmd_len = (uint32_t *)dst - (uint32_t *)(curr_rule->cmd);
2055 ipfw_version_one_to_version_two(struct sockopt *sopt, struct ip_fw *curr_rule,
2079 ipfw_convert_to_cmds(curr_rule, rule_ptr);
2081 curr_rule->version = IP_FW_CURRENT_API_VERSION;
2082 curr_rule->context = rule_ptr->context;
2083 curr_rule->rulenum = rule_ptr->fw_number;
2084 curr_rule->pcnt = rule_ptr->fw_pcnt;
2085 curr_rule->bcnt = rule_ptr->fw_bcnt;
2086 curr_rule->timestamp = rule_ptr->timestamp;
2090 ipfw_print_vers2_struct(curr_rule);
2100 ipfw_version_one_to_latest(struct sockopt *sopt, struct ip_fw *curr_rule, struct ip_fw_compat *rule_vers1)
2109 err = ipfw_version_one_to_version_two(sopt, curr_rule, rule_vers1);
2146 ipfw_version_zero_to_latest(struct sockopt *sopt, struct ip_fw *curr_rule)
2159 bzero(curr_rule, sizeof(struct ip_fw));
2160 curr_rule->version = 10;
2176 return (ipfw_version_one_to_latest(sopt, curr_rule, &rule_vers1));
2183 ipfw_convert_to_latest(struct sockopt *sopt, struct ip_fw *curr_rule, int api_version)
2193 err = ipfw_version_zero_to_latest(sopt, curr_rule);
2198 err = ipfw_version_one_to_latest(sopt, curr_rule, NULL);