summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--anytun.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 3ef2389..9cf7280 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -145,8 +145,9 @@ void* sender(void* p)
// read packet from device
u_int32_t len = param->dev.read(plain_packet);
+// std::cout << len << std::endl;
plain_packet.setLength(len);
- packet.setLength( packet.getSize() );
+ packet.setLength( len );
if( param->cl.empty())
continue;