HTTP_REQ_ACT_TRK_SC0,
/* SC1, SC2, ... SCn */
HTTP_REQ_ACT_TRK_SCMAX = HTTP_REQ_ACT_TRK_SC0 + MAX_SESS_STKCTR - 1,
- HTTP_REQ_ACT_MAX /* must always be last */
};
/* actions for "http-response" */
HTTP_RES_ACT_REDIR,
HTTP_RES_ACT_CUSTOM_STOP, /* used for module keywords */
HTTP_RES_ACT_CUSTOM_CONT, /* used for module keywords */
- HTTP_RES_ACT_MAX /* must always be last */
};
/* final results for http-request rules */
s->current_rule_list = rules;
list_for_each_entry(rule, rules, list) {
- if (rule->action >= HTTP_REQ_ACT_MAX)
- continue;
/* check optional condition */
if (rule->cond) {
}
}
break;
+
+ /* other flags exists, but normaly, they never be matched. */
+ default:
+ break;
}
}
s->current_rule_list = rules;
list_for_each_entry(rule, rules, list) {
- if (rule->action >= HTTP_RES_ACT_MAX)
- continue;
/* check optional condition */
if (rule->cond) {
case HTTP_RES_ACT_CUSTOM_STOP:
rule->action_ptr(rule, px, s->sess, s);
return HTTP_RULE_RES_STOP;
+
+ /* other flags exists, but normaly, they never be matched. */
+ default:
+ break;
}
}