Commit 6c7bfa7c authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

added ISC_NETADDR_FORMATSIZE as a counterpart to

ISC_SOCKADDR_FORMATSIZE and commented them both
parent bf16dd59
...@@ -77,6 +77,12 @@ isc_netaddr_format(isc_netaddr_t *na, char *array, unsigned int size); ...@@ -77,6 +77,12 @@ isc_netaddr_format(isc_netaddr_t *na, char *array, unsigned int size);
* The resulting string is guaranteed to be null-terminated. * The resulting string is guaranteed to be null-terminated.
*/ */
#define ISC_NETADDR_FORMATSIZE \
sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:XXX.XXX.XXX.XXX")
/*
* Minimum size of array to pass to isc_netaddr_format().
*/
void void
isc_netaddr_fromsockaddr(isc_netaddr_t *netaddr, const isc_sockaddr_t *source); isc_netaddr_fromsockaddr(isc_netaddr_t *netaddr, const isc_sockaddr_t *source);
......
...@@ -121,6 +121,9 @@ isc_sockaddr_format(isc_sockaddr_t *sa, char *array, unsigned int size); ...@@ -121,6 +121,9 @@ isc_sockaddr_format(isc_sockaddr_t *sa, char *array, unsigned int size);
#define ISC_SOCKADDR_FORMATSIZE \ #define ISC_SOCKADDR_FORMATSIZE \
sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:XXX.XXX.XXX.XXX#YYYYY") sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:XXX.XXX.XXX.XXX#YYYYY")
/*
* Minimum size of array to pass to isc_sockaddr_format().
*/
ISC_LANG_ENDDECLS ISC_LANG_ENDDECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment