diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-16 21:41:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-16 21:41:12 +0000 |
commit | 69d7b468b47da6984a486f6ddd013ff729c18970 (patch) | |
tree | 350a6eb4a96f25f10856f20126ad06ff3096fae2 /src/common/util.h | |
parent | a8300c5a2ee1bf8640c74b159f350a4c4871758d (diff) | |
download | tor-69d7b468b47da6984a486f6ddd013ff729c18970.tar tor-69d7b468b47da6984a486f6ddd013ff729c18970.tar.gz |
Refactor parse-addr-mask-and-port-range into a separate function
svn:r2540
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 99f326d26..dd55a81c0 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 |