added ISC_NETADDR_FORMATSIZE as a counterpart to

ISC_SOCKADDR_FORMATSIZE and commented them both
This commit is contained in:
Andreas Gustafsson 2000-05-26 16:39:28 +00:00
parent bf16dd5997
commit 6c7bfa7c59
2 changed files with 9 additions and 0 deletions

View file

@ -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.
*/
#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
isc_netaddr_fromsockaddr(isc_netaddr_t *netaddr, const isc_sockaddr_t *source);

View file

@ -121,6 +121,9 @@ isc_sockaddr_format(isc_sockaddr_t *sa, char *array, unsigned int size);
#define ISC_SOCKADDR_FORMATSIZE \
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