From e22debbe45f6901127b08939ab93b6002951c6cc Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Tue, 8 Jan 2008 21:01:13 +0000 Subject: lenght bug partly fixed --- anytun.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'anytun.cpp') 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; -- cgit v1.2.3