tor  0.4.1.0-alpha-dev
address_set.h
Go to the documentation of this file.
1 /* Copyright (c) 2018-2019, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
9 #ifndef TOR_ADDRESS_SET_H
10 #define TOR_ADDRESS_SET_H
11 
12 #include "orconfig.h"
13 #include "lib/cc/torint.h"
15 
21 typedef struct bloomfilt_t address_set_t;
22 struct tor_addr_t;
23 
24 address_set_t *address_set_new(int max_addresses_guess);
25 #define address_set_free(set) bloomfilt_free(set)
26 void address_set_add(address_set_t *set, const struct tor_addr_t *addr);
27 void address_set_add_ipv4h(address_set_t *set, uint32_t addr);
29  const struct tor_addr_t *addr);
30 
31 #endif
Integer definitions used throughout Tor.
void address_set_add(address_set_t *set, const struct tor_addr_t *addr)
Definition: address_set.c:48
address_set_t * address_set_new(int max_addresses_guess)
Definition: address_set.c:34
Header for bloomfilt.c.
int address_set_probably_contains(const address_set_t *set, const struct tor_addr_t *addr)
Definition: address_set.c:67
void address_set_add_ipv4h(address_set_t *set, uint32_t addr)
Definition: address_set.c:55