diff --git a/packettypes.h b/packettypes.h index 4a61e68..5607adf 100644 --- a/packettypes.h +++ b/packettypes.h @@ -177,10 +177,12 @@ typedef union token_packet { union { struct { quint16 authstartid; // 0x20 - char unusedg[5]; // 0x22 + char unusedg2[2]; // 0x22 + quint16 resetcap; // 0x24 + char unusedg1; // 0x26 quint16 commoncap; // 0x27 char unusedh; // 0x29 - quint8 macaddress[6]; // 0x2a + quint8 macaddress[6]; // 0x2a }; quint8 guid[GUIDLEN]; // 0x20 }; diff --git a/udphandler.cpp b/udphandler.cpp index e0d3f02..f74f230 100644 --- a/udphandler.cpp +++ b/udphandler.cpp @@ -683,6 +683,7 @@ void udpHandler::sendToken(uint8_t magic) p.requestreply = 0x01; p.innerseq = qToBigEndian(authSeq++); p.tokrequest = tokRequest; + p.resetcap = qToBigEndian((quint16)0x0798); p.token = token; sendTrackedPacket(QByteArray::fromRawData((const char *)p.packet, sizeof(p)));