blob: 626afed08e75b7b7b8866692a7d5f85980303307 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef REPORT_LIST_H
#define REPORT_LIST_H
#include "list.h"
typedef struct list_head report_list_t;
#include "ifw.h"
typedef struct {
struct list_head list;
int seq;
msg_usr_t info;
char processed;
} report_list_cell_t;
void report_list_init(report_list_t *list);
report_list_cell_t *report_list_add(report_list_t *list, int seq, msg_usr_t *attack);
report_list_cell_t *report_list_find(report_list_t *list, u_int32_t addr, int include_processed);
report_list_cell_t *report_list_find_seq(report_list_t *list, int seq);
void report_list_remove(report_list_cell_t *cell);
void report_list_clear_processed(report_list_t *list);
void report_list_print(report_list_t *list);
#endif /* REPORT_LIST_H */
|