temporary patch for bad recvfrom return values, plus removal of old includes
This commit is contained in:
@@ -1 +0,0 @@
|
||||
#define ZTSDK_BUILD_VERSION 44
|
||||
@@ -30,7 +30,7 @@
|
||||
#ifndef _SDK_DEBUG_H_
|
||||
#define _SDK_DEBUG_H_
|
||||
|
||||
#define DEBUG_LEVEL 4 // Set this to adjust what you'd like to see in the debug traces
|
||||
#define DEBUG_LEVEL 1 // Set this to adjust what you'd like to see in the debug traces
|
||||
|
||||
#define MSG_ERROR 1 // Errors
|
||||
#define MSG_TRANSFER 2 // RX/TX specific statements
|
||||
@@ -106,6 +106,8 @@ extern "C" {
|
||||
#else
|
||||
#define DEBUG_INFO(fmt, args...)
|
||||
#define DEBUG_BLANK(fmt, args...)
|
||||
#define DEBUG_ATTN(fmt, args...)
|
||||
#define DEBUG_STACK(fmt, args...)
|
||||
#endif
|
||||
#if DEBUG_LEVEL >= MSG_TRANSFER
|
||||
#if defined(__ANDROID__)
|
||||
|
||||
@@ -76,8 +76,6 @@
|
||||
#include <jni.h>
|
||||
#endif
|
||||
|
||||
#include "build.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
#include "tap.hpp"
|
||||
#include "sdk.h"
|
||||
#include "debug.h"
|
||||
#include "build.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -316,7 +316,7 @@ int (*realclose)(CLOSE_SIG);
|
||||
else {
|
||||
perror("read:\n");
|
||||
}
|
||||
return tmpsz;
|
||||
return tmpsz <= ZT_MAX_MTU ? tmpsz : -1;
|
||||
}
|
||||
//#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user