summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-04 17:51:23 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-04 17:51:23 +0000
commit1c01d96cb17d8d75e52c2b7d1bdb1354023fa1b4 (patch)
tree132d78190db2bf09eb98f2c9e412bc5879cd3793 /anytun.cpp
parentfinallly working, payload type needs further checks (diff)
fixed set payload type @ plainpacket
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 03f1eba..925e5dd 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -282,10 +282,9 @@ void* receiver(void* p)
c->decrypt(packet, plain_packet);
// check payload_type and remove it
-//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;
+ 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);