summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-02-12 23:58:22 +0000
committerNick Mathewson <nickm@torproject.org>2006-02-12 23:58:22 +0000
commitdba155ecfff1739bc263398a38eb92c10aa643ec (patch)
tree06d66f0f8dcbb12ceb1b6accb82028777732144a /src/common/util.h
parentb99f903e34b1d2b4548937480d2345ab4753454f (diff)
downloadtor-dba155ecfff1739bc263398a38eb92c10aa643ec.tar.gz
tor-dba155ecfff1739bc263398a38eb92c10aa643ec.zip
Generate 18.0.0.0/8 address policy format in descs when we can; warn when the mask is not reducible to a bit-prefix.
svn:r5991
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 90e7eeb29f..36c02164eb 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -168,6 +168,7 @@ int parse_addr_port(const char *addrport, char **address, uint32_t *addr,
int parse_addr_and_port_range(const char *s, uint32_t *addr_out,
uint32_t *mask_out, uint16_t *port_min_out,
uint16_t *port_max_out);
+int addr_mask_get_bits(uint32_t mask);
#define INET_NTOA_BUF_LEN 16
int tor_inet_ntoa(struct in_addr *in, char *buf, size_t buf_len);
char *tor_dup_addr(uint32_t addr);