diff options
author | gennyble <gen@nyble.dev> | 2023-06-07 01:09:16 -0500 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2023-06-07 01:09:16 -0500 |
commit | 551c6990d502fc302cd689325fc082eb2e4908d5 (patch) | |
tree | fef0f56daae3b0c0ee1535b76eb345ee950fde42 /src | |
parent | 6f78cc263ece610e5a1d6cd42ad9bb2148f06ef0 (diff) | |
download | lri-rs-551c6990d502fc302cd689325fc082eb2e4908d5.tar.gz lri-rs-551c6990d502fc302cd689325fc082eb2e4908d5.zip |
add reserved note
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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]; |