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
Container Registry
Model registry
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
The Tor Project
Core
Tor
Commits
4e1b65f5
Commit
4e1b65f5
authored
20 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Dump introduction point status on kill -USR1
svn:r1584
parent
f9ade70c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/or/main.c
+1
-0
1 addition, 0 deletions
src/or/main.c
src/or/or.h
+2
-1
2 additions, 1 deletion
src/or/or.h
src/or/rendservice.c
+31
-0
31 additions, 0 deletions
src/or/rendservice.c
with
34 additions
and
1 deletion
src/or/main.c
+
1
−
0
View file @
4e1b65f5
...
...
@@ -747,6 +747,7 @@ static void dumpstats(int severity) {
(
int
)
(
stats_n_bytes_read
/
stats_n_seconds_reading
));
rep_hist_dump_stats
(
now
,
severity
);
rend_service_dump_stats
(
severity
);
}
int
network_init
(
void
)
...
...
This diff is collapsed.
Click to expand it.
src/or/or.h
+
2
−
1
View file @
4e1b65f5
...
...
@@ -684,6 +684,7 @@ void assert_buf_ok(buf_t *buf);
/********************************* circuit.c ***************************/
extern
char
*
circuit_state_to_string
[];
void
circuit_add
(
circuit_t
*
circ
);
void
circuit_remove
(
circuit_t
*
circ
);
circuit_t
*
circuit_new
(
uint16_t
p_circ_id
,
connection_t
*
p_conn
);
...
...
@@ -1111,7 +1112,7 @@ int rend_service_intro_established(circuit_t *circuit, const char *request, int
void
rend_service_rendezvous_is_ready
(
circuit_t
*
circuit
);
int
rend_service_introduce
(
circuit_t
*
circuit
,
const
char
*
request
,
int
request_len
);
int
rend_service_set_connection_addr_port
(
connection_t
*
conn
,
circuit_t
*
circ
);
void
rend_service_dump_stats
(
int
severity
);
/********************************* rendmid.c *******************************/
int
rend_mid_establish_intro
(
circuit_t
*
circ
,
const
char
*
request
,
int
request_len
);
...
...
This diff is collapsed.
Click to expand it.
src/or/rendservice.c
+
31
−
0
View file @
4e1b65f5
...
...
@@ -732,6 +732,7 @@ int rend_services_init(void) {
if
(
rend_encode_service_descriptor
(
service
->
desc
,
service
->
private_key
,
&
desc
,
&
desc_len
)
<
0
)
{
log_fn
(
LOG_WARN
,
"Couldn't encode service descriptor; not uploading"
);
continue
;
}
...
...
@@ -755,6 +756,36 @@ int rend_services_init(void) {
return
0
;
}
void
rend_service_dump_stats
(
int
severity
)
{
int
i
,
j
;
routerinfo_t
*
router
;
rend_service_t
*
service
;
char
*
nickname
;
circuit_t
*
circ
;
for
(
i
=
0
;
i
<
smartlist_len
(
rend_service_list
);
++
i
)
{
service
=
smartlist_get
(
rend_service_list
,
i
);
log
(
severity
,
"Service configured in %s:"
,
service
->
directory
);
for
(
j
=
0
;
j
<
smartlist_len
(
service
->
intro_nodes
);
++
j
)
{
nickname
=
smartlist_get
(
service
->
intro_nodes
,
j
);
router
=
router_get_by_nickname
(
smartlist_get
(
service
->
intro_nodes
,
j
));
if
(
!
router
)
{
log
(
severity
,
" Intro point at %s: unrecognized router"
,
nickname
);
continue
;
}
circ
=
find_intro_circuit
(
router
,
service
->
pk_digest
);
if
(
!
circ
)
{
log
(
severity
,
" Intro point at %s: no circuit"
,
nickname
);
continue
;
}
log
(
severity
,
" Intro point at %s: circuit is %s"
,
nickname
,
circuit_state_to_string
[
circ
->
state
]);
}
}
}
/* This is a beginning rendezvous stream. Look up conn->port,
* and assign the actual conn->addr and conn->port. Return -1
* if failure, or 0 for success.
...
...
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