Lines Matching refs:rulenum
732 f ? f->rulenum : -1,
741 f ? f->rulenum : -1,
747 limit_reached, f ? f->rulenum : -1));
1375 if (rule->rulenum >= cmd->arg1)
1624 while (f && f->rulenum <= skipto)
2116 args->divert_rule = f->rulenum;
2255 if (*head == NULL && input_rule->rulenum != IPFW_DEFAULT_RULE)
2280 * If rulenum is 0, find highest numbered rule before the
2287 if (rule->rulenum == 0) {
2292 if (f->rulenum == IPFW_DEFAULT_RULE)
2294 rule->rulenum = f->rulenum;
2296 if (rule->rulenum < IPFW_DEFAULT_RULE - autoinc_step)
2297 rule->rulenum += autoinc_step;
2298 input_rule->rulenum = rule->rulenum;
2305 if (f->rulenum > rule->rulenum) { /* found the location */
2321 rule->rulenum, static_count);)
2366 printf("ipfw: rule->rulenum = %d\n", rule->rulenum);
2513 u_int16_t rulenum; /* rule or old_set */
2516 rulenum = arg & 0xffff;
2525 if (rulenum >= IPFW_DEFAULT_RULE)
2528 if (rulenum > RESVD_SET) /* old_set */
2537 for (; rule->rulenum < rulenum; prev = rule, rule = rule->next)
2539 if (rule->rulenum != rulenum)
2547 while (rule->rulenum == rulenum) {
2564 while (rule->rulenum < IPFW_DEFAULT_RULE) {
2565 if (rule->set == rulenum) {
2586 for (; rule->rulenum < IPFW_DEFAULT_RULE; rule = rule->next)
2587 if (rule->rulenum == rulenum)
2592 for (; rule->rulenum < IPFW_DEFAULT_RULE; rule = rule->next)
2593 if (rule->set == rulenum)
2598 for (; rule->rulenum < IPFW_DEFAULT_RULE; rule = rule->next)
2599 if (rule->set == rulenum)
2602 rule->set = rulenum;
2631 zero_entry(int rulenum, int log_only)
2636 if (rulenum == 0) {
2649 if (rule->rulenum == rulenum) {
2650 while (rule && rule->rulenum == rulenum) {
2664 dolog((LOG_AUTHPRIV | LOG_NOTICE, msg, rulenum));
2968 bcopy(&(p->rule->rulenum), &(dst->rule),
2969 sizeof(p->rule->rulenum));
3050 dyn_rule_vers1->chain = p->rule->rulenum;
3171 * rule->rulenum != 0 indicates single rule delete
3203 if (temp_rule.rulenum) {
3205 error = del_entry(&layer3_chain, temp_rule.rulenum);
3232 case IP_FW_RESETLOG: /* using rule->rulenum */
3253 error = zero_entry(temp_rule.rulenum, sopt->sopt_name == IP_FW_RESETLOG);
3356 default_rule.rulenum = IPFW_DEFAULT_RULE;