summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-01-31 11:59:15 +0000
committerOthmar Gsenger <otti@anytun.org>2008-01-31 11:59:15 +0000
commite7d0e0673edad1449eb2665d2a29266979e2f74e (patch)
tree0395b122e28087111a6fb7dc46f5d4541b3fdbd0 /anytun.cpp
parentpacket and cypher fixes (diff)
finallly working, payload type needs further checks
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/anytun.cpp b/anytun.cpp
index ad2a433..03f1eba 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -282,9 +282,10 @@ void* receiver(void* p)
c->decrypt(packet, plain_packet);
// check payload_type and remove it
- if((param->dev.getType() == TunDevice::TYPE_TUN && plain_packet.getPayloadType() != PAYLOAD_TYPE_TUN) ||
- (param->dev.getType() == TunDevice::TYPE_TAP && plain_packet.getPayloadType() != PAYLOAD_TYPE_TAP))
- continue;
+//TODO: fix this!
+// if((param->dev.getType() == TunDevice::TYPE_TUN && plain_packet.getPayloadType() != PAYLOAD_TYPE_TUN) ||
+// (param->dev.getType() == TunDevice::TYPE_TAP && plain_packet.getPayloadType() != PAYLOAD_TYPE_TAP))
+// continue;
// write it on the device
param->dev.write(plain_packet);