diff options
author | George Kadianakis <desnacked@riseup.net> | 2012-11-28 00:24:58 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-27 22:18:08 -0500 |
commit | 6f21d2e49657ada264cace9da7cf6945b4fc073d (patch) | |
tree | b31176e1421128aa2b5a270abb8ff9e4a560e4cc /src/common/address.h | |
parent | f88c3038697b00f50b2da12f46fc76ee0e20d646 (diff) | |
download | tor-6f21d2e49657ada264cace9da7cf6945b4fc073d.tar.gz tor-6f21d2e49657ada264cace9da7cf6945b4fc073d.zip |
Introduce tor_addr_port_parse() and use it to parse ServerTransportListenAddr.
Diffstat (limited to 'src/common/address.h')
-rw-r--r-- | src/common/address.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/address.h b/src/common/address.h index 067b7a0ca6..61c6eb80ee 100644 --- a/src/common/address.h +++ b/src/common/address.h @@ -206,6 +206,9 @@ int tor_addr_is_loopback(const tor_addr_t *addr); int tor_addr_port_split(int severity, const char *addrport, char **address_out, uint16_t *port_out); +int tor_addr_port_parse(int severity, const char *addrport, + tor_addr_t *address_out, uint16_t *port_out); + int tor_addr_hostname_is_local(const char *name); /* IPv4 helpers */ |