messageClass documentation and Dissector data types #195
twistedddx
started this conversation in
General
Replies: 1 comment 4 replies
-
In the UDP I think the connection id should remain as signed because of what the reolink servers expect. Recently when getting UDP to work I had to connect to the reolink servers and upload an XML which contained the connection id. Then later on I would retrieve that same uploaded data and find that it had been converted to signed. (XML is text so there print seems to be as signed). This caused my program to crash as our deserialiser expected unsigned. P.s. reolink servers are just sending UDP packets no extra encryption or anything.... |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would this be slightly more clear in the docs than is currently there?
I wasn't sure if 65 and 66 appear anywhere after the initial setup. I haven't seen them elsewhere.
Message class
The message class determines the length of the header. The following classes and header lengths are known.
0x6514: "legacy" client initialize request (20 bytes)
0x6614: "modern" device initialize reply (20 bytes)
0x6414: "modern" client request (24 bytes)
0x0000: "modern" device reply (24 bytes)
Unrelated I also noticed wireshark showing a message handle with negative numbers.
I think most all those data types make more sense as unsigned. eg message handle should be uint8.
From what I see every one of the dissectors types could be changed to unsigned. Things like size etc makes no sense as a negative.
It is the UDP area I wasn't certain of but I think all the ID's etc also makes more sense as only positive numbers.
Beta Was this translation helpful? Give feedback.
All reactions