]> git.meshlink.io Git - meshlink/blobdiff - src/node.h
Fix some compiler warnings.
[meshlink] / src / node.h
index 4eb216f49014d2f8b9bb5520365d6ce5e8df7adc..9164085c2796b2fb92a583febbcd3aca014aaaba 100644 (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;
@@ -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__ */