-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstat.h
49 lines (41 loc) · 1.11 KB
/
stat.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
#ifndef STAT_H
#define STAT_H
#include "common.h"
typedef struct ping_success {
t_tseq mark;
t_host host;
int ttl, time;
} t_ping_success;
typedef struct ping_discard {
t_tseq mark;
t_host host;
char* reason;
} t_ping_discard;
typedef struct ping_timeout {
t_tseq mark;
} t_ping_timeout;
typedef struct ping_info {
t_tseq mark;
t_host host;
int ttl;
char* info;
} t_ping_info;
void stat_init(gboolean clean);
void stat_free(void);
void stat_clear(gboolean clean);
void stat_reset_cache(void);
void stat_save_success(int at, t_ping_success *data);
void stat_save_discard(int at, t_ping_discard *data);
void stat_save_timeout(int at, t_ping_timeout *data);
void stat_save_info(int at, t_ping_info *data);
void stat_last_tx(int at);
const char *stat_str_elem(int at, int type);
int stat_ping_column(int at, int type, t_ping_column *column);
double stat_dbl_elem(int at, int type);
int stat_int_elem(int at, int type);
void stat_rseq(int at, t_rseq *data);
void stat_legend(int at, t_legend *data);
void stat_whois_enabler(void);
void stat_run_whois_resolv(void);
extern int tgtat /*target at*/, visibles;
#endif