mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Extract all the "am I a server" functions from router.c
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
+1
-1
@@ -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/routermode.h"
|
||||
|
||||
#include "core/or/dos.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user