projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Really fix compiling under Windows.
[tinc]
/
src
/
mingw
/
device.c
diff --git
a/src/mingw/device.c
b/src/mingw/device.c
index
9744196
..
0642725
100644
(file)
--- a/
src/mingw/device.c
+++ b/
src/mingw/device.c
@@
-40,6
+40,9
@@
char *device = NULL;
char *iface = NULL;
static char *device_info = 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) {
extern char *myport;
static DWORD WINAPI tapreader(void *bla) {
@@
-232,6
+235,8
@@
static bool write_packet(vpn_packet_t *packet) {
return false;
}
return false;
}
+ device_total_out += packet->len;
+
return true;
}
return true;
}