<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-guardmgr/src/sample.rs, branch tor-dirmgr-v0.5.1</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=tor-dirmgr-v0.5.1</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=tor-dirmgr-v0.5.1'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-07-07T17:16:06Z</updated>
<entry>
<title>Improve message for failure to select a guard.</title>
<updated>2022-07-07T17:16:06Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-07T17:03:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=287fe915f9b0eb1fdc753b396e3f8bdc907a8e39'/>
<id>urn:sha1:287fe915f9b0eb1fdc753b396e3f8bdc907a8e39</id>
<content type='text'>
This uses similar techniques to the commit I just did for Fallbacks.
</content>
</entry>
<entry>
<title>Rename pick_guard, pick_guard_ext.</title>
<updated>2022-06-17T12:47:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-15T19:07:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=03568cd4a5643be5314dd43b029596f276e99f41'/>
<id>urn:sha1:03568cd4a5643be5314dd43b029596f276e99f41</id>
<content type='text'>
Now the primary exposed function is `pick_guard` again.

This commit is just function renaming.
</content>
</entry>
<entry>
<title>Refactor and document issues with modify_hop.</title>
<updated>2022-06-17T12:47:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-15T19:03:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1be44891c9d9a7d30ade2178ecd04fad08cc8026'/>
<id>urn:sha1:1be44891c9d9a7d30ade2178ecd04fad08cc8026</id>
<content type='text'>
At the site of modify_hop, we now have a comment explaining the
internal-error issue.

To make the internal error less likely, we lower the modify_hop call
in lib.rs into GuardSet, where it can make sure it's looking at the
same filter as was used to select the guard.

The function name "pick_guard_ext" is not permanent; I'm going to
rename it in the next commit.
</content>
</entry>
<entry>
<title>API-fix for extend_sample_as_needed.</title>
<updated>2022-06-17T12:47:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-10T14:07:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=96dfa97473450d6e4cbd93b0ffa8a11021096298'/>
<id>urn:sha1:96dfa97473450d6e4cbd93b0ffa8a11021096298</id>
<content type='text'>
Previously, the API said "you need to call this in a loop till it
returns false".  We did that in one place, but not another.

With the introduction of filters, forgetting to loop here becomes a
bug: so instead, change the behavior of extend_sample_as_needed so
it handles looping itself.
</content>
</entry>
<entry>
<title>Remove some outdated comments.</title>
<updated>2022-06-17T12:47:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-10T13:55:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a92dfa0b2aab07ba6cffd9d9be916f9096a6b33f'/>
<id>urn:sha1:a92dfa0b2aab07ba6cffd9d9be916f9096a6b33f</id>
<content type='text'>
These all say, in one form or another, "there is no guard filtering;
there is only one selection".  That's now false.
</content>
</entry>
<entry>
<title>GuardMgr: remove disallowed addresses from returned FirstHops.</title>
<updated>2022-06-17T12:46:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-01T14:49:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a189aaf1fb1ae7b1f62094a475771c9357d2e6fb'/>
<id>urn:sha1:a189aaf1fb1ae7b1f62094a475771c9357d2e6fb</id>
<content type='text'>
Since a guard can have a bunch of addresses, and the guard is
permitted if any one of those addresses is permitted, then we might
decide to use a guard with some non-permitted addresses.  Thus, we
need to filter those addresses before returning the view of the
guard as a FirstHop.
</content>
</entry>
<entry>
<title>tor-netdir: testnet: Make construct_netdir infallible (rustfmt)</title>
<updated>2022-06-13T13:26:32Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-06-13T13:26:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3e035927f20e88fa01f3b82649daa08551c4fda6'/>
<id>urn:sha1:3e035927f20e88fa01f3b82649daa08551c4fda6</id>
<content type='text'>
Run rustfmt.  Separate commit to make review of the substantive commit
easier.
</content>
</entry>
<entry>
<title>tor-netdir: testnet: Make construct_netdir infallible</title>
<updated>2022-06-13T13:25:45Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-06-13T13:25:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7d223ac9e6c6d998d51a2d66baaeddea086dca37'/>
<id>urn:sha1:7d223ac9e6c6d998d51a2d66baaeddea086dca37</id>
<content type='text'>
This is a *lot* of unwraps.  The function takes no parameters and
is used only for testing.  It ought to be infallible.
</content>
</entry>
<entry>
<title>Initial functions to determine and expose a clock skew estimate.</title>
<updated>2022-04-07T20:01:46Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-04-07T16:16:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=eedee51899eb3365a21c37be3803846373265284'/>
<id>urn:sha1:eedee51899eb3365a21c37be3803846373265284</id>
<content type='text'>
(This is just a placeholder; I'm going to make the functions
smarter in the next commit.)
</content>
</entry>
<entry>
<title>GuardMgr: record clock skew information.</title>
<updated>2022-04-07T15:33:34Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-04-07T15:30:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=99146da2c2654c01259b8219bd491c5d4ac47039'/>
<id>urn:sha1:99146da2c2654c01259b8219bd491c5d4ac47039</id>
<content type='text'>
(It is not yet actually used.)
</content>
</entry>
</feed>
