X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnode.h;h=9164085c2796b2fb92a583febbcd3aca014aaaba;hb=8de8f1d9e2c2c02d4a14a5506e7d0d914dc328da;hp=4eb216f49014d2f8b9bb5520365d6ce5e8df7adc;hpb=ce8775000ab38229a78ecf3dc26bab008ca0f332;p=meshlink diff --git a/src/node.h b/src/node.h index 4eb216f4..9164085c 100644 --- a/src/node.h +++ b/src/node.h @@ -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; @@ -92,6 +97,7 @@ extern void node_del(node_t *); extern node_t *lookup_node(char *); extern node_t *lookup_node_udp(const sockaddr_t *); extern bool dump_nodes(struct connection_t *); +extern bool dump_traffic(struct connection_t *); extern void update_node_udp(node_t *, const sockaddr_t *); #endif /* __TINC_NODE_H__ */