diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-01-31 11:59:15 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-01-31 11:59:15 +0000 |
commit | e7d0e0673edad1449eb2665d2a29266979e2f74e (patch) | |
tree | 0395b122e28087111a6fb7dc46f5d4541b3fdbd0 /anytun.cpp | |
parent | packet and cypher fixes (diff) |
finallly working, payload type needs further checks
Diffstat (limited to 'anytun.cpp')
-rw-r--r-- | anytun.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |