summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-01-08 20:50:30 +0000
committerOthmar Gsenger <otti@anytun.org>2008-01-08 20:50:30 +0000
commitde795cdff551d444fb76c2b190eac80680b2ca65 (patch)
tree75abff3cbd3d2c11a8e589210d208a74ac53ebf2 /anytun.cpp
parentincluded pf_key in anytun_key (needs some review) (diff)
fix in length and nullcypher (still not working)
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;