Set sockaddr.sa_family properly.