summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 796f6d7..0b1123a 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -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))