<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/channel/msg.rs, branch arti-v1.7.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.7.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.7.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-08-21T15:07:32Z</updated>
<entry>
<title>proto: Allow padding in all channel message sets</title>
<updated>2025-08-21T15:07:32Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2025-08-20T19:06:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7e3b3397337ded7c0443b9548c9aac2c60bc1a23'/>
<id>urn:sha1:7e3b3397337ded7c0443b9548c9aac2c60bc1a23</id>
<content type='text'>
First of all, VPADDING has been added in link protocol version 3 so it
was missing from v4.

Second, after closely looking at C-tor and the spec, it appears that we
allow VPADDING at any point on a channel which should simply be silently
dropped. Any number in any order.

Third, couple sets were missing the PADDING cell which is only allowed
on an open channel.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-proto: simplify some match statements</title>
<updated>2025-08-20T19:34:41Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-08-20T19:34:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8e1fd121868cec1469ceeb9a12968e56386a5bd0'/>
<id>urn:sha1:8e1fd121868cec1469ceeb9a12968e56386a5bd0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>proto: Change (crate) to (super) for all objects in msg.rs</title>
<updated>2025-08-20T17:22:16Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2025-08-20T15:34:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0a8bb1de6350a2ba7ba7b59c305a9b3181dd052a'/>
<id>urn:sha1:0a8bb1de6350a2ba7ba7b59c305a9b3181dd052a</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Cleanup allow(unused)</title>
<updated>2025-08-20T17:22:16Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2025-08-14T14:08:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6d037f809446d624e63888f4ceb00041cf2671eb'/>
<id>urn:sha1:6d037f809446d624e63888f4ceb00041cf2671eb</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Add message filtering to restricted message sets</title>
<updated>2025-08-20T16:41:03Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2024-10-01T17:45:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=eeabb9562a5ff79225305d87c9f014ed622e66b3'/>
<id>urn:sha1:eeabb9562a5ff79225305d87c9f014ed622e66b3</id>
<content type='text'>
This adds the code in msg.rs to be able to filter an inbound or outbound
message on a channel.

Each link protocol version implement a "is_allowed()" which is quite
verbose and tests each possibilities for human readability.

Then, we have several small struct/enum that are used to describe how a
message is filtered.

It is still unused at this commit.

Part of #1597

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Add restricted channel message sets</title>
<updated>2025-08-20T16:41:03Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2024-09-30T18:39:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=896f3da6006549a46773e3a4e90275042bc41197'/>
<id>urn:sha1:896f3da6006549a46773e3a4e90275042bc41197</id>
<content type='text'>
Add the msg.rs file containing all the allowed message sets based on the
channel type and direction. They are also namespaced by link protocol
version.

Unused at this commit. They will be used by the channel reactor along
the channel type and link protocol version in order to know if the
message is allowed or not. See is_allowed() helper function in this
commit.

Part of #1597

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
</feed>
