From 551c6990d502fc302cd689325fc082eb2e4908d5 Mon Sep 17 00:00:00 2001 From: gennyble Date: Wed, 7 Jun 2023 01:09:16 -0500 Subject: add reserved note --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 1978569..cce36d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,6 +23,8 @@ fn main() { //AHHH it does not seem the combined legth or header length are correct? it seems like nonsense? //drat. we'll know when I try and parse the message I think I extracted. 1510 bytes seems too //small almost. + //the thing that makes me suspicious, and think it's right, is that the reserved are all 0x00 + //and then the next byte is data, so. println!("\nMagic: {magic_number}\nCombined Length: {combined_length}\nHeader Length: {header_length}\nMessage Length: {message_length}\nKind: {kind}\nReserved: {reserved:?}\nNext 8 Bytes: {:?}", &data[0..8]); let message = &data[..message_length as usize]; -- cgit 1.4.1-3-g733a5