diff --git a/packettypes.h b/packettypes.h index 5355879..2fcb110 100644 --- a/packettypes.h +++ b/packettypes.h @@ -150,7 +150,8 @@ typedef union token_packet { char unuseda[3]; // 0x10 quint16 code; // 0x13 quint16 res; // 0x15 - quint16 innerseq; // 0x17 + quint8 innerseq; // 0x17 + char unusedb; // 0x18 char unusedc; // 0x19 quint16 tokrequest; // 0x1a quint32 token; // 0x1c @@ -173,7 +174,8 @@ typedef union status_packet { char unuseda[3]; // 0x10 quint16 code; // 0x13 quint16 res; // 0x15 - quint16 innerseq; // 0x17 + quint8 innerseq; // 0x17 + char unusedb; // 0x18 char unusedc; // 0x19 quint16 tokrequest; // 0x1a quint32 token; // 0x1c @@ -207,7 +209,8 @@ typedef union login_response_packet { char unuseda[3]; // 0x10 quint16 code; // 0x13 quint16 res; // 0x15 - quint16 innerseq; // 0x17 + quint8 innerseq; // 0x17 + char unusedb; // 0x18 char unusedc; // 0x19 quint16 tokrequest; // 0x1a quint32 token; // 0x1c @@ -233,7 +236,8 @@ typedef union login_packet { char unuseda[3]; // 0x10 quint16 code; // 0x13 quint16 res; // 0x15 - quint16 innerseq; // 0x17 + quint8 innerseq; // 0x17 + char unusedaa; // 0x18; char unusedb; // 0x19 quint16 tokrequest; // 0x1a quint32 token; // 0x1c @@ -258,7 +262,8 @@ typedef union conninfo_packet { char unuseda[3]; // 0x10 quint16 code; // 0x13 quint16 res; // 0x15 - quint16 innerseq; // 0x17 + quint8 innerseq; // 0x17 + char unusedaa; // 0x18 char unusedb; // 0x19 quint16 tokrequest; // 0x1a quint32 token; // 0x1c @@ -308,7 +313,8 @@ typedef union capabilities_packet { char unuseda[3]; // 0x10 quint16 code; // 0x13 quint16 res; // 0x15 - quint16 innerseq; // 0x17 + quint8 innerseq; // 0x17 + char unusedb; // 0x18 char unusedc; // 0x19 quint16 tokrequest; // 0x1a quint32 token; // 0x1c diff --git a/udphandler.h b/udphandler.h index 0574b7b..00010ef 100644 --- a/udphandler.h +++ b/udphandler.h @@ -74,8 +74,8 @@ public: QUdpSocket* udp=Q_NULLPTR; uint32_t myId = 0; uint32_t remoteId = 0; - uint16_t authInnerSendSeq = 0; - uint16_t innerSendSeq = 0x8304; // Not sure why? + uint8_t authSeq = 0x00; + //uint16_t innerSendSeq = 0x8304; // Not sure why? uint16_t sendSeqB = 0; uint16_t sendSeq = 1; uint16_t lastReceivedSeq = 1; diff --git a/udpserver.h b/udpserver.h index 41143ad..38ba5d5 100644 --- a/udpserver.h +++ b/udpserver.h @@ -70,7 +70,7 @@ private: quint16 connSeq; quint16 pingSeq; quint32 rxPingTime; // 32bit as has other info - quint32 authInnerSeq; + quint8 authInnerSeq; quint16 authSeq; quint16 innerSeq; quint16 sendAudioSeq;