aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 99f326d26d..dd55a81c04 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -248,6 +248,10 @@ int tor_lookup_hostname(const char *name, uint32_t *addr);
int parse_addr_port(const char *addrport, char **address, uint32_t *addr,
uint16_t *port);
+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);
+
/* For stupid historical reasons, windows sockets have an independent
* set of errnos, and an independent way to get them. Also, you can't
* always believe WSAEWOULDBLOCK. Use the macros below to compare