Prop. 157 updates

... to make parsing the messages easier
This commit is contained in:
zzz
2021-02-18 09:32:11 -05:00
parent 94f780539e
commit 4de1c653ce

View File

@@ -5,7 +5,7 @@ Smaller Tunnel Build Messages
:author: zzz, orignal :author: zzz, orignal
:created: 2020-10-09 :created: 2020-10-09
:thread: http://zzz.i2p/topics/2957 :thread: http://zzz.i2p/topics/2957
:lastupdated: 2021-01-10 :lastupdated: 2021-02-18
:status: Open :status: Open
:target: 0.9.51 :target: 0.9.51
@@ -269,19 +269,18 @@ I2NP Type 26
{% highlight lang='dataspec' %} {% highlight lang='dataspec' %}
+----+----+----+----+----+----+----+----+ +----+----+----+----+----+----+----+----+
| num| ShortBuildReplyRecords... | num|slot| length | Cleartext
+----+----+----+----+----+----+----+----+
|
+----+----+----+----+----+----+----+----+
|slot| length | Cleartext
+----+----+----+----+----+----+----+----+ +----+----+----+----+----+----+----+----+
BuildReplyRecord | BuildReplyRecord |
+----+----+----+----+----+----+----+----+ +----+----+----+----+----+----+----+----+
| ShortBuildReplyRecords... |
+----+----+----+----+----+----+----+----+
num :: num ::
Number of encrypted records to follow Total number of records,
equal to 1 + the number of encrypted reply records
1 byte `Integer` 1 byte `Integer`
Valid values: 0-7 Valid values: 1-8
slot :: slot ::
Slot for the plaintext record to follow Slot for the plaintext record to follow
@@ -297,8 +296,12 @@ I2NP Type 26
Plaintext record for OBEP Plaintext record for OBEP
length: TBD-172 length: TBD-172
ShortBuildReplyRecords ::
Encrypted records
length: (num-1) * 236
cleartext record size: TBD-172 bytes
encrypted record size: 236 bytes encrypted record size: 236 bytes
cleartext record size: 236 bytes
total size: varies total size: varies
{% endhighlight %} {% endhighlight %}
@@ -323,19 +326,18 @@ I2NP Type 27
{% highlight lang='dataspec' %} {% highlight lang='dataspec' %}
+----+----+----+----+----+----+----+----+ +----+----+----+----+----+----+----+----+
| num| ShortBuildRequestRecords... | num|slot| length | Cleartext
+----+----+----+----+----+----+----+----+
|
+----+----+----+----+----+----+----+----+
|slot| length | Cleartext
+----+----+----+----+----+----+----+----+ +----+----+----+----+----+----+----+----+
BuildRequestRecord | BuildRequestRecord |
+----+----+----+----+----+----+----+----+ +----+----+----+----+----+----+----+----+
| ShortBuildRequestRecords... |
+----+----+----+----+----+----+----+----+
num :: num ::
Number of encrypted records to follow Total number of records,
equal to 1 + the number of encrypted request records
1 byte `Integer` 1 byte `Integer`
Valid values: 0-7 Valid values: 1-8
slot :: slot ::
Slot for the plaintext record to follow Slot for the plaintext record to follow
@@ -351,8 +353,12 @@ I2NP Type 27
Plaintext record for IBGW Plaintext record for IBGW
length: TBD-172 length: TBD-172
ShortBuildReplyRecords ::
Encrypted records
length: (num-1) * 236
cleartext record size: TBD-172 bytes
encrypted record size: 236 bytes encrypted record size: 236 bytes
cleartext record size: 236 bytes
total size: varies total size: varies
{% endhighlight %} {% endhighlight %}