#include "antiblock.h"

typedef struct statistics {
    int32_t sended_to_client;
    int32_t sended_to_dns;

    int32_t sended_to_client_error;
    int32_t sended_to_dns_error;

    int32_t request_parsing_error;

#ifdef TUN_MODE
    int32_t nat_sended_to_client_error;
    double nat_sended_to_client_size;
    int32_t nat_sended_to_client;

    int32_t nat_sended_to_dev_error;
    double nat_sended_to_dev_size;
    int32_t nat_sended_to_dev;

    int32_t nat_records;
#endif

    time_t stat_start;
} statistics_t;

extern statistics_t stat;

void stat_print(void);
