]> git.meshlink.io Git - meshlink/blobdiff - src/mingw/device.c
Started the implementation of route_meshlink that at the moment routes packets based...
[meshlink] / src / mingw / device.c
index 9744196a3cd93c65d2138b34deada4d540af6861..0642725fa5247b9440967ac788e68fd45d5ba407 100644 (file)
@@ -40,6 +40,9 @@ char *device = NULL;
 char *iface = NULL;
 static char *device_info = NULL;
 
+static uint64_t device_total_in = 0;
+static uint64_t device_total_out = 0;
+
 extern char *myport;
 
 static DWORD WINAPI tapreader(void *bla) {
@@ -232,6 +235,8 @@ static bool write_packet(vpn_packet_t *packet) {
                return false;
        }
 
+       device_total_out += packet->len;
+
        return true;
 }