summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-25 18:14:33 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-25 18:14:33 +0000
commit381a601abe589e02ed8f2cedfa1b4f948f314631 (patch)
tree5731d66765533e9284d84ed6a33ca257a2ca58cb /anytun.cpp
parentoptions is global now (diff)
bugfix with packet length
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 49d4c12..df80f79 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -147,7 +147,7 @@ void* sender(void* p)
encrypted_packet.setLength(MAX_PACKET_LENGTH);
// read packet from device
u_int32_t len = param->dev.read(plain_packet.getPayload(), plain_packet.getPayloadLength());
- plain_packet.setLength(len);
+ plain_packet.setPayloadLength(len);
std::cout << "plain_packet.getPayloadLength() = " << plain_packet.getPayloadLength() << std::endl;