diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-01-08 20:50:30 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-01-08 20:50:30 +0000 |
commit | de795cdff551d444fb76c2b190eac80680b2ca65 (patch) | |
tree | 75abff3cbd3d2c11a8e589210d208a74ac53ebf2 /anytun.cpp | |
parent | included 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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |