Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
2c3dafc3
Commit
2c3dafc3
authored
14 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote branch 'origin/maint-0.2.2'
parents
d17b9bf1
ea7f4be6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/relay_early_rend
+6
-0
6 additions, 0 deletions
changes/relay_early_rend
src/or/relay.c
+4
-10
4 additions, 10 deletions
src/or/relay.c
with
10 additions
and
10 deletions
changes/relay_early_rend
0 → 100644
+
6
−
0
View file @
2c3dafc3
o Code simplifications and refactorting:
- When we fixed bug 1038 we had to put in a restriction not to send
RELAY_EARLY cells for relay cells on rend circuits. This was necessary
as long as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
active. Since this isn't the case anymore, we unify our behaviour here.
Implements bug 2081.
This diff is collapsed.
Click to expand it.
src/or/relay.c
+
4
−
10
View file @
2c3dafc3
...
...
@@ -593,17 +593,11 @@ relay_send_command_from_edge(streamid_t stream_id, circuit_t *circ,
origin_circuit_t
*
origin_circ
=
TO_ORIGIN_CIRCUIT
(
circ
);
if
(
origin_circ
->
remaining_relay_early_cells
>
0
&&
(
relay_command
==
RELAY_COMMAND_EXTEND
||
(
cpath_layer
!=
origin_circ
->
cpath
&&
!
CIRCUIT_PURPOSE_IS_ESTABLISHED_REND
(
circ
->
purpose
))))
{
/* If we've got any relay_early cells left, and we're sending
* an extend cell or (we're not talking to the first hop and we're
* not talking to a rendezvous circuit), use one of them.
* Don't worry about the conn protocol version:
cpath_layer
!=
origin_circ
->
cpath
))
{
/* If we've got any relay_early cells left and (we're sending
* an extend cell or we're not talking to the first hop), use
* one of them. Don't worry about the conn protocol version:
* append_cell_to_circuit_queue will fix it up. */
/* XXX For now, clients don't use RELAY_EARLY cells when sending
* relay cells on rendezvous circuits. See bug 1038. Once no relays
* (and thus no rendezvous points) are running 0.2.1.3-alpha through
* 0.2.1.18, we can take out that exception. -RD */
cell
.
command
=
CELL_RELAY_EARLY
;
--
origin_circ
->
remaining_relay_early_cells
;
log_debug
(
LD_OR
,
"Sending a RELAY_EARLY cell; %d remaining."
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment