Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mike Perry
Tor
Commits
fcd0f761
Commit
fcd0f761
authored
Sep 25, 2018
by
Nick Mathewson
🥄
Browse files
Extract all the "am I a server" functions from router.c
parent
70539e3d
Changes
35
Hide whitespace changes
Inline
Side-by-side
src/app/config/config.c
View file @
fcd0f761
...
...
@@ -106,6 +106,7 @@
#include
"feature/hs/hs_config.h"
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"lib/sandbox/sandbox.h"
#include
"feature/nodelist/dirlist.h"
#include
"feature/nodelist/routerset.h"
...
...
src/app/config/statefile.c
View file @
fcd0f761
...
...
@@ -40,6 +40,7 @@
#include
"feature/hibernate/hibernate.h"
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"lib/sandbox/sandbox.h"
#include
"app/config/statefile.h"
#include
"lib/encoding/confline.h"
...
...
src/app/main/main.c
View file @
fcd0f761
...
...
@@ -35,6 +35,7 @@
#include
"feature/dirauth/bwauth.h"
#include
"feature/dirauth/process_descs.h"
#include
"feature/relay/dns.h"
#include
"feature/relay/routermode.h"
#include
"feature/client/entrynodes.h"
#include
"feature/stats/geoip.h"
#include
"feature/hibernate/hibernate.h"
...
...
src/core/include.am
View file @
fcd0f761
...
...
@@ -105,6 +105,7 @@ LIBTOR_APP_A_SOURCES = \
src/feature/relay/onion_queue.c \
src/feature/relay/router.c \
src/feature/relay/routerkeys.c \
src/feature/relay/routermode.c \
src/feature/relay/selftest.c \
src/feature/rend/rendcache.c \
src/feature/rend/rendclient.c \
...
...
@@ -326,6 +327,7 @@ noinst_HEADERS += \
src/feature/relay/onion_queue.h \
src/feature/relay/router.h \
src/feature/relay/routerkeys.h \
src/feature/relay/routermode.h \
src/feature/relay/selftest.h \
src/feature/rend/rend_authorized_client_st.h \
src/feature/rend/rend_encoded_v2_service_descriptor_st.h \
...
...
src/core/mainloop/connection.c
View file @
fcd0f761
...
...
@@ -81,6 +81,7 @@
#include
"feature/dircommon/directory.h"
#include
"feature/dircache/dirserv.h"
#include
"feature/relay/dns.h"
#include
"feature/relay/routermode.h"
#include
"feature/client/dnsserv.h"
#include
"core/or/dos.h"
#include
"feature/client/entrynodes.h"
...
...
src/core/mainloop/mainloop.c
View file @
fcd0f761
...
...
@@ -92,6 +92,7 @@
#include
"feature/rend/rendservice.h"
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"feature/relay/routerkeys.h"
#include
"feature/relay/selftest.h"
#include
"feature/nodelist/routerlist.h"
...
...
src/core/or/channelpadding.c
View file @
fcd0f761
...
...
@@ -20,6 +20,7 @@
#include
"core/mainloop/mainloop.h"
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"lib/time/compat_time.h"
#include
"feature/rend/rendservice.h"
#include
"lib/evloop/timers.h"
...
...
src/core/or/channeltls.c
View file @
fcd0f761
...
...
@@ -53,6 +53,7 @@
#include
"core/or/relay.h"
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"feature/nodelist/dirlist.h"
#include
"core/or/scheduler.h"
#include
"feature/nodelist/torcert.h"
...
...
src/core/or/circuitbuild.c
View file @
fcd0f761
...
...
@@ -61,6 +61,7 @@
#include
"feature/rend/rendcommon.h"
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"feature/relay/selftest.h"
#include
"feature/nodelist/node_select.h"
#include
"feature/nodelist/routerlist.h"
...
...
src/core/or/circuituse.c
View file @
fcd0f761
...
...
@@ -55,6 +55,7 @@
#include
"feature/rend/rendservice.h"
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"feature/relay/selftest.h"
#include
"feature/nodelist/routerlist.h"
#include
"lib/math/fp.h"
...
...
src/core/or/command.c
View file @
fcd0f761
...
...
@@ -55,6 +55,7 @@
#include
"feature/stats/rephist.h"
#include
"core/or/relay.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"feature/nodelist/routerlist.h"
#include
"core/or/cell_st.h"
...
...
src/core/or/connection_edge.c
View file @
fcd0f761
...
...
@@ -93,6 +93,7 @@
#include
"feature/rend/rendservice.h"
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"feature/nodelist/routerlist.h"
#include
"feature/nodelist/routerset.h"
#include
"core/or/circuitbuild.h"
...
...
src/core/or/connection_or.c
View file @
fcd0f761
...
...
@@ -56,6 +56,7 @@
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routerkeys.h"
#include
"feature/relay/routermode.h"
#include
"feature/nodelist/dirlist.h"
#include
"feature/nodelist/routerlist.h"
#include
"feature/relay/ext_orport.h"
...
...
src/core/or/dos.c
View file @
fcd0f761
...
...
@@ -19,7 +19,7 @@
#include
"feature/nodelist/networkstatus.h"
#include
"feature/nodelist/nodelist.h"
#include
"core/or/relay.h"
#include
"feature/relay/router.h"
#include
"feature/relay/router
mode
.h"
#include
"core/or/dos.h"
...
...
src/core/or/policies.c
View file @
fcd0f761
...
...
@@ -25,6 +25,7 @@
#include
"feature/nodelist/nodelist.h"
#include
"core/or/policies.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"feature/nodelist/routerparse.h"
#include
"feature/stats/geoip.h"
#include
"ht.h"
...
...
src/core/or/status.c
View file @
fcd0f761
...
...
@@ -21,6 +21,7 @@
#include
"feature/nodelist/nodelist.h"
#include
"core/or/relay.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"core/or/circuitlist.h"
#include
"core/mainloop/mainloop.h"
#include
"feature/stats/rephist.h"
...
...
src/feature/control/control.c
View file @
fcd0f761
...
...
@@ -81,6 +81,7 @@
#include
"feature/rend/rendservice.h"
#include
"feature/stats/rephist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"feature/relay/selftest.h"
#include
"feature/nodelist/authcert.h"
#include
"feature/nodelist/dirlist.h"
...
...
src/feature/dircache/dircache.c
View file @
fcd0f761
...
...
@@ -23,7 +23,7 @@
#include
"feature/nodelist/authcert.h"
#include
"feature/nodelist/networkstatus.h"
#include
"feature/nodelist/routerlist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/router
mode
.h"
#include
"feature/rend/rendcache.h"
#include
"feature/stats/geoip.h"
#include
"feature/stats/rephist.h"
...
...
src/feature/dircache/dirserv.c
View file @
fcd0f761
...
...
@@ -15,6 +15,7 @@
#include
"feature/nodelist/microdesc.h"
#include
"feature/nodelist/routerlist.h"
#include
"feature/relay/router.h"
#include
"feature/relay/routermode.h"
#include
"feature/stats/rephist.h"
#include
"feature/dircache/cached_dir_st.h"
...
...
src/feature/dirclient/dirclient.c
View file @
fcd0f761
...
...
@@ -35,6 +35,7 @@
#include
"feature/nodelist/nodelist.h"
#include
"feature/nodelist/routerlist.h"
#include
"feature/nodelist/routerset.h"
#include
"feature/relay/routermode.h"
#include
"feature/relay/selftest.h"
#include
"feature/rend/rendcache.h"
#include
"feature/rend/rendclient.h"
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment