From bcffd342a4bd8dbe2043feef4380e8b358141ca0 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 25 Jan 2018 12:06:52 -0500 Subject: [PATCH] update iwp docs --- doc/proto_v0.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/proto_v0.txt b/doc/proto_v0.txt index 898d424f2..7a64ca72f 100644 --- a/doc/proto_v0.txt +++ b/doc/proto_v0.txt @@ -207,7 +207,8 @@ start transmiting a link layer message msg_bytes = BE(msg) -32 bytes msgid computed as HS(msg_bytes) +32 bytes hash of message computed as HS(msg_bytes) +64 bits unsigned int message id 12 bits unsigned int fragment size bytes, s 4 bits unsigned int number of fragments, n 8 bits size of last fragment in bytes, l @@ -218,7 +219,7 @@ FRAG payload: transmit a link layer message fragment -32 bytes msgid +64 bits message id 4 bits ignored 4 bits unsigned int fragment number remaining bytes of payload are fragment data @@ -227,7 +228,7 @@ ACKS payload: indicates we which chunks we have recieved -32 bytes msgid +64 bits message id 16 bits bitmask of chunks we have received remaining bytes discarded