|
@@ -50,7 +50,9 @@
|
|
#include <netinet/in.h>
|
|
#include <netinet/in.h>
|
|
#include <netinet/tcp.h>
|
|
#include <netinet/tcp.h>
|
|
|
|
|
|
|
|
+#ifndef ZT_NO_METRICS
|
|
#include "../node/Metrics.hpp"
|
|
#include "../node/Metrics.hpp"
|
|
|
|
+#endif
|
|
|
|
|
|
#if defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux)
|
|
#if defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux)
|
|
#ifndef IPV6_DONTFRAG
|
|
#ifndef IPV6_DONTFRAG
|
|
@@ -476,7 +478,9 @@ public:
|
|
sizeof(struct sockaddr_in)) == (long)len);
|
|
sizeof(struct sockaddr_in)) == (long)len);
|
|
#endif
|
|
#endif
|
|
if (sent) {
|
|
if (sent) {
|
|
|
|
+#ifndef ZT_NO_METRICS
|
|
Metrics::udp_send += len;
|
|
Metrics::udp_send += len;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
return sent;
|
|
return sent;
|