diff --git a/src/common_define.h b/src/common_define.h index 0913390..4c96473 100644 --- a/src/common_define.h +++ b/src/common_define.h @@ -125,7 +125,8 @@ extern int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind); #define FC_IOV_BATCH_SIZE IOV_MAX #endif -// 由于要支持IPv6,所以将IP_ADDRESS_SIZE的值由16修改为46 +#define IPV4_ADDRESS_SIZE INET_ADDRSTRLEN //16 +#define IPV6_ADDRESS_SIZE INET6_ADDRSTRLEN //46 #define IP_ADDRESS_SIZE INET6_ADDRSTRLEN //46 #define FORMATTED_IP_SIZE (IP_ADDRESS_SIZE + 2) #define INFINITE_FILE_SIZE (256 * 1024LL * 1024 * 1024 * 1024 * 1024LL)