for handshake matching
authorvictor <victor@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 19 Nov 2009 09:17:06 +0000 (09:17 +0000)
committervictor <victor@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 19 Nov 2009 09:17:06 +0000 (09:17 +0000)
git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@591 e16421f0-f15b-0410-abcd-98678b794739

sendrecv.cpp

index 6cba0c2..c328c18 100644 (file)
@@ -84,8 +84,9 @@ void  Channel::AddHandshake (Datagram& dgram) {
                 tintstr(),id,file().root_hash().hex().c_str());
        }
        dgram.Push8(P2TP_HANDSHAKE);
-       dgram.Push32(EncodeID(id));
-    dprintf("%s #%i +hs\n",tintstr(),id);
+    int encoded = EncodeID(id);
+       dgram.Push32(encoded);
+    dprintf("%s #%i +hs %i\n",tintstr(),id,encoded);
     ack_out_.clear();
     AddAck(dgram);
 }