diff options
Diffstat (limited to 'anytun.cpp')
-rw-r--r-- | anytun.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -90,7 +90,7 @@ void* sender(void* p) param->c.setKey(tmp_key); param->c.setSalt(tmp_salt); - std::cout << "seq: " << seq << std::endl << "sID: " << param->opt.getSenderId() << std::endl; + std::cout << "Send Package: seq: " << seq << std::endl << "sID: " << param->opt.getSenderId() << std::endl; param->c.cypher(pack, seq, param->opt.getSenderId()); @@ -148,7 +148,9 @@ void* receiver(void* p) param->c.setKey(tmp_key); param->c.setSalt(tmp_salt); param->c.cypher(pack, pack.getSeqNr(), pack.getSenderId()); - + + std::cout << "Received Package: seq: " << pack.getSeqNr() << std::endl << "sID: " << pack.getSenderId() << std::endl; + // check payload_type and remove it if((param->dev.getType() == TunDevice::TYPE_TUN && pack.getPayloadType() != PAYLOAD_TYPE_TUN) || (param->dev.getType() == TunDevice::TYPE_TAP && pack.getPayloadType() != PAYLOAD_TYPE_TAP)) |