static const char *hexchars = "0123456789abcdef";
static const char *
-inet_ntop4(const struct in_addr *addr, char *buf, size_t len)
+inet_ntop4(const struct in_addr *addr, char *buf, socklen_t len)
{
const u_int8_t *ap = (const u_int8_t *)&addr->s_addr;
char tmp[MAX_IPv4_STR_LEN]; /* max length of ipv4 addr string */
}
static const char *
-inet_ntop6(const struct in6_addr *addr, char *dst, size_t size)
+inet_ntop6(const struct in6_addr *addr, char *dst, socklen_t size)
{
char hexa[8][5], tmp[MAX_IPv6_STR_LEN];
int zr[8];
}
const char *
-inet_ntop(int af, const void *addr, char *buf, size_t len)
+inet_ntop(int af, const void *addr, char *buf, socklen_t len)
{
if(af==AF_INET6)
return inet_ntop6(addr, buf, len);