diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-25 17:22:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-25 17:22:14 -0400 |
commit | 3ff58e47d211d8649202c093f00934011effed1b (patch) | |
tree | 1243e4e4107a17a793c24a0b20691a10000d1a9d /src/feature/relay/router.h | |
parent | b8df2318e9531a17938392cd0cbea0b901f50245 (diff) | |
download | tor-3ff58e47d211d8649202c093f00934011effed1b.tar.gz tor-3ff58e47d211d8649202c093f00934011effed1b.zip |
Move the "is the network disabled?" functions out of router.c
Since this is completely core functionality, I'm putting it in
core/mainloop, even though it depends on feature/hibernate. We'll
have to sort that out in the future.
Diffstat (limited to 'src/feature/relay/router.h')
-rw-r--r-- | src/feature/relay/router.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/feature/relay/router.h b/src/feature/relay/router.h index 90cc5abaf6..a9c7ac3fd5 100644 --- a/src/feature/relay/router.h +++ b/src/feature/relay/router.h @@ -16,6 +16,7 @@ #include "feature/nodelist/describe.h" #include "feature/nodelist/nickname.h" #include "feature/nodelist/routerinfo.h" +#include "core/mainloop/netstatus.h" struct curve25519_keypair_t; struct ed25519_keypair_t; @@ -59,9 +60,6 @@ int router_initialize_tls_context(void); int init_keys(void); int init_keys_client(void); -int net_is_disabled(void); -int net_is_completely_disabled(void); - uint16_t router_get_active_listener_port_by_type_af(int listener_type, sa_family_t family); uint16_t router_get_advertised_or_port(const or_options_t *options); |