diff options
author | Christian Pointner <equinox@anytun.org> | 2008-02-04 17:51:23 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-02-04 17:51:23 +0000 |
commit | 1c01d96cb17d8d75e52c2b7d1bdb1354023fa1b4 (patch) | |
tree | 132d78190db2bf09eb98f2c9e412bc5879cd3793 /anytun.cpp | |
parent | finallly working, payload type needs further checks (diff) |
fixed set payload type @ plainpacket
Diffstat (limited to 'anytun.cpp')
-rw-r--r-- | anytun.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); |