Lines Matching defs:sin
21 struct sockaddr_in sin;
31 sizeof(so.sin6) : sizeof(so.sin))
102 so->sin.sin_family = ip->family;
106 memcpy(&so->sin.sin_addr, &ip->u.ip4, sizeof(ip->u.ip4));
116 ip->family = so->sin.sin_family;
122 memcpy(&ip->u.ip4, &so->sin.sin_addr, sizeof(ip->u.ip4));
129 if (so->sin.sin_family == AF_INET6)
132 so->sin.sin_port = htons(port);
137 if (so->sin.sin_family == AF_INET6)
139 if (so->sin.sin_family == AF_INET)
140 return ntohs(so->sin.sin_port);
158 so.sin.sin_family = ip->family;
249 so.sin.sin_family = ip->family;
427 fd = socket(so.sin.sin_family, SOCK_STREAM, 0);
431 so.sin.sin_family = AF_INET;
432 so.sin.sin_addr.s_addr = INADDR_ANY;
456 if (so.sin.sin_family == AF_INET6) {
582 if (so.sin.sin_family == AF_UNIX) {
696 if (so.sin.sin_family == AF_UNIX) {
717 if (so.sin.sin_family == AF_UNIX) {