workaround for platforms where sockaddr_in6 is too big