} BypassedCheckFuncItem;
int g_bypassed_func_max_index = 0;
-BypassedCheckFuncItem BypassedFuncList[BYPASSFUNCMAX];
+BypassedCheckFuncItem bypassedfunclist[BYPASSFUNCMAX];
typedef struct BypassedUpdateFuncItem_ {
BypassedUpdateFunc Func;
} BypassedUpdateFuncItem;
int g_bypassed_update_max_index = 0;
-BypassedUpdateFuncItem UpdateFuncList[BYPASSFUNCMAX];
+BypassedUpdateFuncItem updatefunclist[BYPASSFUNCMAX];
static TmEcode BypassedFlowManager(ThreadVars *th_v, void *thread_data)
{
return TM_ECODE_FAILED;
}
for (i = 0; i < g_bypassed_func_max_index; i++) {
- if (BypassedFuncList[i].FuncInit) {
- BypassedFuncList[i].FuncInit(&curtime, BypassedFuncList[i].data);
+ if (bypassedfunclist[i].FuncInit) {
+ bypassedfunclist[i].FuncInit(&curtime, bypassedfunclist[i].data);
}
}
}
for (i = 0; i < g_bypassed_func_max_index; i++) {
struct flows_stats bypassstats = { 0, 0, 0};
- tcount = BypassedFuncList[i].Func(&bypassstats, &curtime, BypassedFuncList[i].data);
+ tcount = bypassedfunclist[i].Func(&bypassstats, &curtime, bypassedfunclist[i].data);
if (tcount) {
StatsAddUI64(th_v, ftd->flow_bypassed_cnt_clo, (uint64_t)bypassstats.count);
StatsAddUI64(th_v, ftd->flow_bypassed_pkts, (uint64_t)bypassstats.packets);
int i;
for (i = 0; i < g_bypassed_update_max_index; i++) {
- if (UpdateFuncList[i].Func(f, p, UpdateFuncList[i].data)) {
+ if (updatefunclist[i].Func(f, p, updatefunclist[i].data)) {
return;
}
}
return -1;
}
if (g_bypassed_func_max_index < BYPASSFUNCMAX) {
- BypassedFuncList[g_bypassed_func_max_index].Func = CheckFunc;
- BypassedFuncList[g_bypassed_func_max_index].FuncInit = CheckFuncInit;
- BypassedFuncList[g_bypassed_func_max_index].data = data;
+ bypassedfunclist[g_bypassed_func_max_index].Func = CheckFunc;
+ bypassedfunclist[g_bypassed_func_max_index].FuncInit = CheckFuncInit;
+ bypassedfunclist[g_bypassed_func_max_index].data = data;
g_bypassed_func_max_index++;
} else {
return -1;
return -1;
}
if (g_bypassed_update_max_index < BYPASSFUNCMAX) {
- UpdateFuncList[g_bypassed_update_max_index].Func = UpdateFunc;
- UpdateFuncList[g_bypassed_update_max_index].data = data;
+ updatefunclist[g_bypassed_update_max_index].Func = UpdateFunc;
+ updatefunclist[g_bypassed_update_max_index].data = data;
g_bypassed_update_max_index++;
} else {
return -1;