From fc1feadb61b1b3c735bda5dd66201e9460b1130d Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 17 May 2000 02:20:58 +0000 Subject: [PATCH] Add ISC_SOCKADDR_FORMATSIZE macro. --- lib/isc/include/isc/sockaddr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/isc/include/isc/sockaddr.h b/lib/isc/include/isc/sockaddr.h index 0b9dcef081..cf4476984c 100644 --- a/lib/isc/include/isc/sockaddr.h +++ b/lib/isc/include/isc/sockaddr.h @@ -119,6 +119,9 @@ isc_sockaddr_format(isc_sockaddr_t *sa, char *array, unsigned int size); * The resulting string is guaranteed to be null-terminated. */ +#define ISC_SOCKADDR_FORMATSIZE \ + sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:XXX.XXX.XXX.XXX#YYYYY") + ISC_LANG_ENDDECLS #endif /* ISC_SOCKADDR_H */