Browse Source

temporary patch for bad recvfrom return values, plus removal of old includes

pull/1/head
Joseph Henry 9 years ago
parent
commit
f2a5b09179
  1. 1
      src/build.h
  2. 4
      src/debug.h
  3. 2
      src/sdk.h
  4. 1
      src/service.cpp
  5. 2
      src/sockets.c

1
src/build.h

@ -1 +0,0 @@
#define ZTSDK_BUILD_VERSION 44

4
src/debug.h

@ -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__)

2
src/sdk.h

@ -76,8 +76,6 @@
#include <jni.h>
#endif
#include "build.h"
#ifdef __cplusplus
extern "C" {
#endif

1
src/service.cpp

@ -49,7 +49,6 @@
#include "tap.hpp"
#include "sdk.h"
#include "debug.h"
#include "build.h"
#ifdef __cplusplus
extern "C" {

2
src/sockets.c

@ -316,7 +316,7 @@ int (*realclose)(CLOSE_SIG);
else {
perror("read:\n");
}
return tmpsz;
return tmpsz <= ZT_MAX_MTU ? tmpsz : -1;
}
//#endif

Loading…
Cancel
Save