use INET_ADDRSTRLEN and INET6_ADDRSTRLEN instead of magic constants