Add per-node traffic counters.

This commit is contained in:
Guus Sliepen 2011-05-15 00:42:29 +02:00
parent ffa3a443b9
commit f5843e7d64
5 changed files with 34 additions and 10 deletions

View file

@ -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;