Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
sergi
Tor
Commits
bce1fc43
Commit
bce1fc43
authored
21 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
when you get an intro ack, don't also count it as an intro nack
svn:r1666
parent
3fa2925a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/or/or.h
+10
-9
10 additions, 9 deletions
src/or/or.h
src/or/rendclient.c
+1
-0
1 addition, 0 deletions
src/or/rendclient.c
with
11 additions
and
9 deletions
src/or/or.h
+
10
−
9
View file @
bce1fc43
...
...
@@ -224,18 +224,19 @@
#define CIRCUIT_PURPOSE_C_GENERAL 5
/* normal circuit, with cpath */
#define CIRCUIT_PURPOSE_C_INTRODUCING 6
/* at Alice, connecting to intro point */
#define CIRCUIT_PURPOSE_C_INTRODUCE_ACK_WAIT 7
/* at Alice, sent INTRODUCE1 to intro point, waiting for ACK/NAK */
#define CIRCUIT_PURPOSE_C_INTRODUCE_ACKED 8
/* at Alice, introduced and acked, closing */
#define CIRCUIT_PURPOSE_C_ESTABLISH_REND
8
/* at Alice, waiting for ack */
#define CIRCUIT_PURPOSE_C_REND_READY
9
/* at Alice, waiting for Bob */
#define CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED 1
0
/* at Alice, waiting for Bob */
#define CIRCUIT_PURPOSE_C_REND_JOINED 1
1
/* at Alice, rendezvous established */
#define CIRCUIT_PURPOSE_C_ESTABLISH_REND
9
/* at Alice, waiting for ack */
#define CIRCUIT_PURPOSE_C_REND_READY
10
/* at Alice, waiting for Bob */
#define CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED 1
1
/* at Alice, waiting for Bob */
#define CIRCUIT_PURPOSE_C_REND_JOINED 1
2
/* at Alice, rendezvous established */
#define CIRCUIT_PURPOSE_S_ESTABLISH_INTRO 1
2
/* at Bob, waiting for introductions */
#define CIRCUIT_PURPOSE_S_INTRO 1
3
/* at Bob, successfully established intro */
#define CIRCUIT_PURPOSE_S_CONNECT_REND 1
4
/* at Bob, connecting to rend point */
#define CIRCUIT_PURPOSE_S_ESTABLISH_INTRO 1
3
/* at Bob, waiting for introductions */
#define CIRCUIT_PURPOSE_S_INTRO 1
4
/* at Bob, successfully established intro */
#define CIRCUIT_PURPOSE_S_CONNECT_REND 1
5
/* at Bob, connecting to rend point */
#define CIRCUIT_PURPOSE_S_REND_JOINED 1
5
/* at Bob, rendezvous established.*/
#define _CIRCUIT_PURPOSE_MAX 1
5
#define CIRCUIT_PURPOSE_S_REND_JOINED 1
6
/* at Bob, rendezvous established.*/
#define _CIRCUIT_PURPOSE_MAX 1
6
#define CIRCUIT_PURPOSE_IS_ORIGIN(p) ((p)>_CIRCUIT_PURPOSE_OR_MAX)
#define CIRCUIT_IS_ORIGIN(c) (CIRCUIT_PURPOSE_IS_ORIGIN((c)->purpose))
...
...
This diff is collapsed.
Click to expand it.
src/or/rendclient.c
+
1
−
0
View file @
bce1fc43
...
...
@@ -171,6 +171,7 @@ rend_client_introduction_acked(circuit_t *circ,
rendcirc
->
purpose
=
CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED
;
}
/* close the circuit: we won't need it anymore. */
circ
->
purpose
=
CIRCUIT_PURPOSE_C_INTRODUCE_ACKED
;
circuit_mark_for_close
(
circ
);
}
else
{
/* It's a NAK; the introduction point didn't relay our request. */
...
...
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