summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-07-19 19:40:45 +0000
committerNick Mathewson <nickm@torproject.org>2007-07-19 19:40:45 +0000
commit4a240552c4ea837e174f37e04a19fb9f01e03d6d (patch)
tree7d4a5a17a1d403ed85384e9260767931d3d301c9 /src/common/util.h
parentbbbf50428102156359974e33bbcb70537132ace9 (diff)
downloadtor-4a240552c4ea837e174f37e04a19fb9f01e03d6d.tar.gz
tor-4a240552c4ea837e174f37e04a19fb9f01e03d6d.zip
r13834@catbus: nickm | 2007-07-19 15:40:42 -0400
Another patch from croup: drop support for address masks that do not correspond to bit prefixes. Nobody has used this for a while, and we have given warnings for a long time. svn:r10881
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 0165661fb6..3cd19c06c0 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -251,9 +251,10 @@ int parse_addr_port(int severity, const char *addrport, char **address,
int parse_port_range(const char *port, uint16_t *port_min_out,
uint16_t *port_max_out);
int parse_addr_and_port_range(const char *s, uint32_t *addr_out,
- uint32_t *mask_out, uint16_t *port_min_out,
+ maskbits_t *maskbits_out, uint16_t *port_min_out,
uint16_t *port_max_out);
int addr_mask_get_bits(uint32_t mask);
+int addr_mask_cmp_bits(uint32_t a1, uint32_t a2, maskbits_t bits);
int tor_inet_ntoa(const struct in_addr *in, char *buf, size_t buf_len);
char *tor_dup_addr(uint32_t addr) ATTR_MALLOC;
int get_interface_address(int severity, uint32_t *addr);