diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-03-05 05:27:59 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-03-05 05:27:59 +0000 |
commit | 6a4e304d9e613b613e208bb0f11ec44c3fc30150 (patch) | |
tree | 9bad163e3aeb3bb299223924cee4e69ae773e276 /src/common/util.h | |
parent | ae628a3aee48c0fcd76f747fc44adfbfc94c910c (diff) | |
download | tor-6a4e304d9e613b613e208bb0f11ec44c3fc30150.tar.gz tor-6a4e304d9e613b613e208bb0f11ec44c3fc30150.zip |
Allow private:* in routerdescs; not generated yet (because older Tors do not understand it); needs testing.
svn:r6086
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 36c02164eb..64aca2392c 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -165,6 +165,8 @@ int is_internal_IP(uint32_t ip, int for_listening); int is_local_IP(uint32_t ip); int parse_addr_port(const char *addrport, char **address, uint32_t *addr, uint16_t *port); +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, uint16_t *port_max_out); |