-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo_acquire.h
53 lines (43 loc) · 829 Bytes
/
info_acquire.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* colector.h
*
* Created on: Feb 25, 2011
* Author: nuno
*/
#ifndef COLECTOR_H_
#define COLECTOR_H_
struct filter_info_acquire {
long entry;
long src;
long dst;
long rejected;
};
#define MAX_SYSCALLS 6
struct counters {
int entry;
int success;
int unsuccess;
};
struct syscall_info_acquire {
struct counters info[MAX_SYSCALLS];
/*
struct counters sendto;
struct counters recv;
struct counters accept;
struct counters bind;
struct counters connect;
struct counters close;
*/
};
struct db_info_acquire {
long how_many_ports;
long how_many_inserts;
long how_many_removes;
};
struct info_acquire {
struct filter_info_acquire *filter;
struct syscall_info_acquire *syscalls[MAX_SYSCALLS];
struct db_info_acquire *db;
};
int acquireInfo(struct info_acquire *info);
#endif /* COLECTOR_H_ */