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
b7c765b1
Commit
b7c765b1
authored
13 years ago
by
Robert Ransom
Browse files
Options
Downloads
Patches
Plain Diff
Report circuit build_state flags in CIRC events
parent
9ce76adf
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/feature2411
+7
-0
7 additions, 0 deletions
changes/feature2411
src/or/control.c
+28
-0
28 additions, 0 deletions
src/or/control.c
with
35 additions
and
0 deletions
changes/feature2411
0 → 100644
+
7
−
0
View file @
b7c765b1
o Minor features:
- Report flags that control a circuit's path selection to
controllers in CIRC events and in replies to 'GETINFO
circuit-status'. Implements part of ticket 2411.
This diff is collapsed.
Click to expand it.
src/or/control.c
+
28
−
0
View file @
b7c765b1
...
...
@@ -1794,6 +1794,34 @@ circuit_describe_status_for_controller(origin_circuit_t *circ)
}
}
{
char
*
buildflags
=
NULL
;
cpath_build_state_t
*
build_state
=
circ
->
build_state
;
smartlist_t
*
flaglist
=
smartlist_create
();
char
*
flaglist_joined
;
if
(
build_state
->
onehop_tunnel
)
smartlist_add
(
flaglist
,
(
void
*
)
"ONEHOP_TUNNEL"
);
if
(
build_state
->
is_internal
)
smartlist_add
(
flaglist
,
(
void
*
)
"IS_INTERNAL"
);
if
(
build_state
->
need_capacity
)
smartlist_add
(
flaglist
,
(
void
*
)
"NEED_CAPACITY"
);
if
(
build_state
->
need_uptime
)
smartlist_add
(
flaglist
,
(
void
*
)
"NEED_UPTIME"
);
/* Only emit a BUILD_FLAGS argument if it will have a non-empty value. */
if
(
smartlist_len
(
flaglist
))
{
flaglist_joined
=
smartlist_join_strings
(
flaglist
,
","
,
0
,
NULL
);
tor_asprintf
(
&
buildflags
,
"BUILD_FLAGS=%s"
,
flaglist_joined
);
smartlist_add
(
descparts
,
buildflags
);
tor_free
(
flaglist_joined
);
}
smartlist_free
(
flaglist
);
}
{
char
*
purpose
=
NULL
;
tor_asprintf
(
&
purpose
,
"PURPOSE=%s"
,
...
...
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