Check if struct sockaddr has a ss_len field, and use the according
parameter to getnameinfo().