sockaddr_in and in6 for bsd