2020-05-05 13:24:03 -04:00
|
|
|
/* Copyright (c) 2020, The Tor Project, Inc. */
|
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
2020-05-05 15:34:58 -04:00
|
|
|
* \file relay_find_addr.h
|
|
|
|
* \brief Header file for relay_find_addr.c.
|
2020-05-05 13:24:03 -04:00
|
|
|
**/
|
|
|
|
|
2020-05-05 15:34:58 -04:00
|
|
|
#ifndef TOR_RELAY_FIND_ADDR_H
|
|
|
|
#define TOR_RELAY_FIND_ADDR_H
|
2020-05-05 13:24:03 -04:00
|
|
|
|
|
|
|
MOCK_DECL(int, router_pick_published_address,
|
|
|
|
(const or_options_t *options, uint32_t *addr, int cache_only));
|
|
|
|
|
|
|
|
void router_new_address_suggestion(const char *suggestion,
|
|
|
|
const dir_connection_t *d_conn);
|
|
|
|
|
2020-05-05 15:34:58 -04:00
|
|
|
#ifdef RELAY_FIND_ADDR_PRIVATE
|
2020-05-05 13:24:03 -04:00
|
|
|
|
2020-05-05 15:34:58 -04:00
|
|
|
#endif /* RELAY_FIND_ADDR_PRIVATE */
|
2020-05-05 13:24:03 -04:00
|
|
|
|
2020-05-05 15:34:58 -04:00
|
|
|
#endif /* TOR_RELAY_FIND_ADDR_H */
|
2020-05-05 13:24:03 -04:00
|
|
|
|