summaryrefslogtreecommitdiff
path: root/src/lib/subsys/initialization.md
blob: ee3104324d8b1d5d3bebded1c0242ac18536a0b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
7apu2bq3rhoylwmucxizk54afw5jyda7pho4j5zdcqpwkufke7zdzwad.onion
 


kt">void addressmap_register(const char *address, char *new_address,
                         time_t expires, addressmap_entry_source_t source,
                         const int address_wildcard,
                         const int new_address_wildcard);
int parse_virtual_addr_network(const char *val,
                               sa_family_t family, int validate_only,
                               char **msg);
int client_dns_incr_failures(const char *address);
void client_dns_clear_failures(const char *address);
void client_dns_set_addressmap(entry_connection_t *for_conn,
                               const char *address, const tor_addr_t *val,
                               const char *exitname, int ttl);
const char *addressmap_register_virtual_address(int type, char *new_address);
void addressmap_get_mappings(smartlist_t *sl, time_t min_expires,
                             time_t max_expires, int want_expiry);
int address_is_in_virtual_range(const char *addr);
void clear_trackexithost_mappings(const char *exitname);
void client_dns_set_reverse_addressmap(entry_connection_t *for_conn,
                                       const char *address, const char *v,
                                       const char *exitname, int ttl);
int addressmap_address_should_automap(const char *address,
                                      const or_options_t *options);

#ifdef ADDRESSMAP_PRIVATE
typedef struct virtual_addr_conf_t {
  tor_addr_t addr;
  maskbits_t bits;
} virtual_addr_conf_t;

STATIC void get_random_virtual_addr(const virtual_addr_conf_t *conf,
                                    tor_addr_t *addr_out);
#endif /* defined(ADDRESSMAP_PRIVATE) */

#endif /* !defined(TOR_ADDRESSMAP_H) */