From de795cdff551d444fb76c2b190eac80680b2ca65 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Tue, 8 Jan 2008 20:50:30 +0000 Subject: fix in length and nullcypher (still not working) --- anytun.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'anytun.cpp') 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; -- cgit v1.2.3