summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_sockaddr.h
diff options
context:
space:
mode:
authorOisin Canty <o.canty@f5.com>2021-08-12 08:23:09 +0000
committerOisin Canty <o.canty@f5.com>2021-08-12 08:23:09 +0000
commit73ea6a1c3a7a4a7f3ab14230b80e783e57a7d830 (patch)
treedd6311ed175e5f02c9ad36ca89f5ac6256024748 /src/nxt_sockaddr.h
parent9988569beafce7f587f17a9ef710b76e9bfa3165 (diff)
downloadunit-73ea6a1c3a7a4a7f3ab14230b80e783e57a7d830.tar.gz
unit-73ea6a1c3a7a4a7f3ab14230b80e783e57a7d830.tar.bz2
Introduced nxt_sockaddr_parse_optport() for addresses w/o ports.
Diffstat (limited to 'src/nxt_sockaddr.h')
-rw-r--r--src/nxt_sockaddr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_sockaddr.h b/src/nxt_sockaddr.h
index aa4da5d2..a8f1b393 100644
--- a/src/nxt_sockaddr.h
+++ b/src/nxt_sockaddr.h
@@ -91,12 +91,15 @@ NXT_EXPORT nxt_bool_t nxt_sockaddr_cmp(nxt_sockaddr_t *sa1,
NXT_EXPORT size_t nxt_sockaddr_ntop(nxt_sockaddr_t *sa, u_char *buf,
u_char *end, nxt_bool_t port);
NXT_EXPORT nxt_sockaddr_t *nxt_sockaddr_parse(nxt_mp_t *mp, nxt_str_t *addr);
+NXT_EXPORT nxt_sockaddr_t *nxt_sockaddr_parse_optport(nxt_mp_t *mp,
+ nxt_str_t *addr);
NXT_EXPORT void nxt_job_sockaddr_parse(nxt_job_sockaddr_parse_t *jbs);
NXT_EXPORT in_addr_t nxt_inet_addr(u_char *buf, size_t len);
#if (NXT_INET6)
NXT_EXPORT nxt_int_t nxt_inet6_addr(struct in6_addr *in6_addr, u_char *buf,
size_t len);
#endif
+NXT_EXPORT nxt_bool_t nxt_inet6_probe(nxt_str_t *addr);
#define NXT_INET_ADDR_STR_LEN nxt_length("255.255.255.255:65535")