summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-01-08 21:01:13 +0000
committerOthmar Gsenger <otti@anytun.org>2008-01-08 21:01:13 +0000
commite22debbe45f6901127b08939ab93b6002951c6cc (patch)
tree9b1d07dedae0cd8ed4e26d45ad66b1e9402e2fa0 /anytun.cpp
parentfix in length and nullcypher (still not working) (diff)
lenght bug partly fixed
Diffstat (limited to 'anytun.cpp')
-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;