Tor  0.4.7.0-alpha-dev
relay_find_addr.h
Go to the documentation of this file.
1 /* Copyright (c) 2020-2021, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
4 /**
5  * \file relay_find_addr.h
6  * \brief Header file for relay_find_addr.c.
7  **/
8 
9 #ifndef TOR_RELAY_FIND_ADDR_H
10 #define TOR_RELAY_FIND_ADDR_H
11 
12 typedef enum {
13  RELAY_FIND_ADDR_NO_FLAG = (1U << 0),
14  RELAY_FIND_ADDR_CACHE_ONLY = (1U << 1),
15 } relay_find_addr_flags_t;
16 
17 void relay_address_new_suggestion(const tor_addr_t *suggested_addr,
18  const tor_addr_t *peer_addr,
19  const char *identity_digest);
20 
22  (const or_options_t *options, int family, int flags,
23  tor_addr_t *addr_out));
24 
25 void relay_addr_learn_from_dirauth(void);
26 
27 #ifdef RELAY_FIND_ADDR_PRIVATE
28 
29 #endif /* RELAY_FIND_ADDR_PRIVATE */
30 
31 #endif /* !defined(TOR_RELAY_FIND_ADDR_H) */
32 
bool relay_find_addr_to_publish(const or_options_t *options, int family, int flags, tor_addr_t *addr_out)
void relay_address_new_suggestion(const tor_addr_t *suggested_addr, const tor_addr_t *peer_addr, const char *identity_digest)
#define MOCK_DECL(rv, funcname, arglist)
Definition: testsupport.h:127