Add per-node traffic counters.
This commit is contained in:
parent
ffa3a443b9
commit
f5843e7d64
5 changed files with 34 additions and 10 deletions
|
|
@ -77,6 +77,11 @@ typedef struct node_t {
|
|||
length_t maxmtu; /* Probed maximum MTU */
|
||||
int mtuprobes; /* Number of probes */
|
||||
struct event mtuevent; /* Probe event */
|
||||
|
||||
uint64_t in_packets;
|
||||
uint64_t in_bytes;
|
||||
uint64_t out_packets;
|
||||
uint64_t out_bytes;
|
||||
} node_t;
|
||||
|
||||
extern struct node_t *myself;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue