mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 04:50:01 -04:00
added ISC_NETADDR_FORMATSIZE as a counterpart to
ISC_SOCKADDR_FORMATSIZE and commented them both
This commit is contained in:
parent
bf16dd5997
commit
6c7bfa7c59
2 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue