summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 8d2f1ac..3ef2389 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -141,12 +141,12 @@ void* sender(void* p)
u_int16_t mux = 0;
while(1)
{
- packet.setLength( packet.getSize() );
- plain_packet.setLength( plain_packet.getSize() );
+ plain_packet.setLength( 1600);
// read packet from device
u_int32_t len = param->dev.read(plain_packet);
plain_packet.setLength(len);
+ packet.setLength( packet.getSize() );
if( param->cl.empty())
continue;