aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.h
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-05-07 10:18:52 -0700
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-05-07 10:22:02 -0700
commitc75bf388b5fc3555dd21d44b7856358f771292a4 (patch)
treeac554f29e3b862b5bed32207592a21c16a033456 /src/or/config.h
parentfaec7956a96b143f8ba7192e7ff2a996469935e0 (diff)
downloadtor-c75bf388b5fc3555dd21d44b7856358f771292a4.tar.gz
tor-c75bf388b5fc3555dd21d44b7856358f771292a4.zip
Warn users when addresses in ports and descriptor are inconsistent
This mitigates bug 13953.
Diffstat (limited to 'src/or/config.h')
-rw-r--r--src/or/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h
index 02121cf95c..168e7d9926 100644
--- a/src/or/config.h
+++ b/src/or/config.h
@@ -87,6 +87,12 @@ int get_first_advertised_port_by_type_af(int listener_type,
(get_first_advertised_port_by_type_af(CONN_TYPE_OR_LISTENER, AF_INET))
#define get_primary_dir_port() \
(get_first_advertised_port_by_type_af(CONN_TYPE_DIR_LISTENER, AF_INET))
+const tor_addr_t *get_first_advertised_addr_by_type_af(int listener_type,
+ int address_family);
+int port_exists_by_type_addr_port(int listener_type, const tor_addr_t *addr,
+ int port, int check_wildcard);
+int port_exists_by_type_addr32h_port(int listener_type, uint32_t addr_ipv4h,
+ int port, int check_wildcard);
char *get_first_listener_addrport_string(int listener_type);