]> git.meshlink.io Git - meshlink/commit
Improved node traffic counters.
authorGuus Sliepen <guus@meshlink.io>
Sun, 8 Aug 2021 20:18:46 +0000 (22:18 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 9 Sep 2021 18:09:07 +0000 (20:09 +0200)
commit8cbd423d5425bd13232de9c69a84a9b4b1ff3b88
tree86bd8905b5b8039cd002527b67ffee509ac27ac0
parent88b24fcfccc5802db199d3fac2cec659ac48ca78
Improved node traffic counters.

Drop counters for packets, keep byte counters. But distinguish between
application data (channel traffic) and meta-data (including UDP probes).
Also track how much data we forward for other nodes.

The counters can be read by devtool_get_node_status(), and a new function
devtool_reset_node_counters() has been added that will zero the counters.
src/devtools.c
src/devtools.h
src/meshlink.c
src/meshlink.sym
src/meta.c
src/net_packet.c
src/net_socket.c
src/node.h
src/protocol_key.c
src/route.c