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
6c7bf2f8
Commit
6c7bf2f8
authored
18 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
r9364@Kushana: nickm | 2006-10-23 22:57:48 -0400
Remove reference to NS_FULL event; add two GETINFO targets. svn:r8812
parent
48a926df
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
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
doc/control-spec.txt
+9
-2
9 additions, 2 deletions
doc/control-spec.txt
src/or/control.c
+8
-1
8 additions, 1 deletion
src/or/control.c
with
19 additions
and
3 deletions
ChangeLog
+
2
−
0
View file @
6c7bf2f8
...
...
@@ -28,6 +28,8 @@ Changes in version 0.1.2.3-alpha - 2006-10-??
like those for circuit events.
- NS events to inform a controller when our opinion of a router's status
has changed.
- Add a GETINFO events/names and GETINFO features/names so controllers
can tell which events and features are supported.
o Security bugfixes:
- When the user sends a NEWNYM signal, clear the client-side DNS
...
...
This diff is collapsed.
Click to expand it.
doc/control-spec.txt
+
9
−
2
View file @
6c7bf2f8
...
...
@@ -194,8 +194,7 @@ $Id$
EventCode = "CIRC" / "STREAM" / "ORCONN" / "BW" / "DEBUG" /
"INFO" / "NOTICE" / "WARN" / "ERR" / "NEWDESC" / "ADDRMAP" /
"AUTHDIR_NEWDESCS" / "DESCCHANGED" / "STATUS_GENERAL" /
"STATUS_CLIENT" / "STATUS_SERVER" / "GUARDS" / "NS" /
"NS_FULL"
"STATUS_CLIENT" / "STATUS_SERVER" / "GUARDS" / "NS"
Any events *not* listed in the SETEVENTS line are turned off; thus, sending
SETEVENTS with an empty body turns off all event reporting.
...
...
@@ -447,6 +446,14 @@ $Id$
OptionPrefix SP Documentation CRLF
OptionPrefix = OptionName "/*"
"events/names"
A space-separated list of all the events supported by this version of
Tor's SETEVENTS.
"features/names"
A space-separated list of all the events supported by this version of
Tor's USEFEATURE.
"dir/status/authority"
"dir/status/fp/<F>"
"dir/status/fp/<F1>+<F2>+<F3>"
...
...
This diff is collapsed.
Click to expand it.
src/or/control.c
+
8
−
1
View file @
6c7bf2f8
...
...
@@ -1482,6 +1482,12 @@ handle_getinfo_helper(control_connection_t *control_conn,
return
config_getinfo_helper
(
question
,
answer
);
}
else
if
(
!
strcmp
(
question
,
"info/names"
))
{
*
answer
=
list_getinfo_options
();
}
else
if
(
!
strcmp
(
question
,
"events/names"
))
{
*
answer
=
tor_strdup
(
"CIRC STREAM ORCONN BW DEBUG INFO NOTICE WARN ERR "
"NEWDESC ADDRMAP AUTHDIR_NEWDESCS DESCCHANGED "
"NS STATUS_GENERAL STATUS_CLIENT STATUS_SERVER"
);
}
else
if
(
!
strcmp
(
question
,
"features/names"
))
{
*
answer
=
tor_strdup
(
"VERBOSE_NAMES EXTENDED_EVENTS"
);
}
else
if
(
!
strcmpstart
(
question
,
"desc/id/"
))
{
routerinfo_t
*
ri
=
router_get_by_hexdigest
(
question
+
strlen
(
"desc/id/"
));
if
(
ri
)
{
...
...
@@ -2420,7 +2426,8 @@ handle_control_usefeature(control_connection_t *conn,
/* remove this in 0.1.2.4; EXTENDED_FORMAT only ever worked for a
* little while during 0.1.2.2-alpha-dev. */
log_warn
(
LD_GENERAL
,
"EXTENDED_FORMAT is deprecated; use EXTENDED_EVENTS instead."
);
"EXTENDED_FORMAT is deprecated; use EXTENDED_EVENTS "
"instead."
);
extended_events
=
1
;
}
else
{
connection_printf_to_buf
(
conn
,
"552 Unrecognized feature
\"
%s
\"\r\n
"
,
...
...
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