Tor  0.4.6.0-alpha-dev
relay_find_addr.h
Go to the documentation of this file.
1 /* Copyright (c) 2020, 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 bool relay_has_address_set(int family);
26 
27 void relay_addr_learn_from_dirauth(void);
28 
29 #ifdef RELAY_FIND_ADDR_PRIVATE
30 
31 #endif /* RELAY_FIND_ADDR_PRIVATE */
32 
33 #endif /* TOR_RELAY_FIND_ADDR_H */
34 
relay_has_address_set
bool relay_has_address_set(int family)
Definition: relay_find_addr.c:154
tor_addr_t
Definition: address.h:69
relay_find_addr_to_publish
bool relay_find_addr_to_publish(const or_options_t *options, int family, int flags, tor_addr_t *addr_out)
Definition: relay_find_addr.c:107
MOCK_DECL
#define MOCK_DECL(rv, funcname, arglist)
Definition: testsupport.h:127
relay_address_new_suggestion
void relay_address_new_suggestion(const tor_addr_t *suggested_addr, const tor_addr_t *peer_addr, const char *identity_digest)
Definition: relay_find_addr.c:49
or_options_t
Definition: or_options_st.h:64