mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
traffic counters are changed to 64-bit
traffic counters are changed to 64-bit using pstdint.h
This commit is contained in:
1 parent
467650bbbf
commit
2890f06488
21 files changed
+569
-44
No files matched your search
@@ -339,7 +339,11 @@ fflush(stderr);
|
||||
param->res = 467;
|
||||
break;
|
||||
}
|
||||
#ifndef NOPSTDINT
|
||||
param->statscli64+=(len - i);
|
||||
#else
|
||||
param->statscli+=(len - i);
|
||||
#endif
|
||||
param->nwrites++;
|
||||
#if SOCKSTRACE > 1
|
||||
fprintf(stderr, "UDP packet relayed from client to %s:%hu size %d, header %d\n",
|
||||
@@ -366,7 +370,11 @@ fflush(stderr);
|
||||
param->res = 468;
|
||||
break;
|
||||
}
|
||||
#ifndef NOPSTDINT
|
||||
param->statssrv64+=len;
|
||||
#else
|
||||
param->statssrv+=len;
|
||||
#endif
|
||||
param->nreads++;
|
||||
memcpy(buf+4, &tsin.sin_addr.s_addr, 4);
|
||||
memcpy(buf+8, &tsin.sin_port, 2);
|
||||
|
||||
Reference in new issue
Block a user