struct list clients;
struct list frames;
+ unsigned int nbframes;
};
{
struct worker *worker = arg;
- LOG(worker, "%u clients connected", worker->nbclients);
+ LOG(worker, "%u clients connected (%u frames)", worker->nbclients, worker->nbframes);
}
static void
goto stop_processing;
if (spoe_decode_data(&p, end, &data, &type) == -1)
goto skip_message;
-
+ frame->worker->nbframes++;
if (type == SPOE_DATA_T_IPV4)
check_ipv4_reputation(frame, &data.ipv4);
if (type == SPOE_DATA_T_IPV6)
w->id = i+1;
w->nbclients = 0;
+ w->nbframes = 0;
LIST_INIT(&w->engines);
LIST_INIT(&w->clients);
LIST_INIT(&w->frames);