Lines Matching defs:ss
510 struct sockaddr_storage ss;
517 ss.ss_len = sa->sa_len;
518 ss.ss_family = sa->sa_family;
519 if (ss.ss_family == AF_INET) {
520 ((struct sockaddr_in*)&ss)->sin_addr.s_addr = INADDR_ANY;
521 ((struct sockaddr_in*)&ss)->sin_port = htons(0);
522 } else if (ss.ss_family == AF_INET6) {
523 ((struct sockaddr_in6*)&ss)->sin6_addr = in6addr_any;
524 ((struct sockaddr_in6*)&ss)->sin6_port = htons(0);
529 error = sock_bind(nso->nso_so, (struct sockaddr*)&ss);
693 struct sockaddr_storage ss;
719 if (!nfs_uaddr2sockaddr(addrstr, (struct sockaddr*)&ss)) {
725 if (nmp->nm_sofamily && (ss.ss_family != nmp->nm_sofamily)) {
732 error = nfs_socket_create(nmp, (struct sockaddr*)&ss, nss->nss_sotype,
944 struct sockaddr_storage ss;
1110 bcopy(nso->nso_saddr, &ss, nso->nso_saddr->sa_len);
1116 if (ss.ss_family == AF_INET)
1117 ((struct sockaddr_in*)&ss)->sin_port = htons(0);
1118 else if (ss.ss_family == AF_INET6)
1119 ((struct sockaddr_in6*)&ss)->sin6_port = htons(0);
1120 error = nfs_portmap_lookup(nmp, vfs_context_current(), (struct sockaddr*)&ss,
1124 if (ss.ss_family == AF_INET)
1125 port = ntohs(((struct sockaddr_in*)&ss)->sin_port);
1126 else if (ss.ss_family == AF_INET6)
1127 port = ntohs(((struct sockaddr_in6*)&ss)->sin6_port);
1133 error = nfs_portmap_lookup(nmp, vfs_context_current(), (struct sockaddr*)&ss,
1137 if (ss.ss_family == AF_INET)
1138 port = ntohs(((struct sockaddr_in*)&ss)->sin_port);
1139 else if (ss.ss_family == AF_INET6)
1140 port = ntohs(((struct sockaddr_in6*)&ss)->sin6_port);
1152 error = nfs_socket_create(nmp, (struct sockaddr*)&ss, nso->nso_sotype, port,
1173 bcopy(nso->nso_saddr, &ss, nso->nso_saddr->sa_len);
1175 if (ss.ss_family == AF_INET)
1176 ((struct sockaddr_in*)&ss)->sin_port = htons(port);
1177 else if (ss.ss_family == AF_INET6)
1178 ((struct sockaddr_in6*)&ss)->sin6_port = htons(port);
1184 error = nfs_portmap_lookup(nmp, vfs_context_current(), (struct sockaddr*)&ss,
1188 if (ss.ss_family == AF_INET)
1189 port = ntohs(((struct sockaddr_in*)&ss)->sin_port);
1190 else if (ss.ss_family == AF_INET6)
1191 port = ntohs(((struct sockaddr_in6*)&ss)->sin6_port);
1197 MALLOC(nsonfs->nso_saddr2, struct sockaddr *, ss.ss_len, M_SONAME, M_WAITOK|M_ZERO);
1201 bcopy(&ss, nsonfs->nso_saddr2, ss.ss_len);
1225 bcopy(nso->nso_saddr, &ss, nso->nso_saddr->sa_len);
1227 if (ss.ss_family == AF_INET)
1228 ((struct sockaddr_in*)&ss)->sin_port = htons(port);
1229 else if (ss.ss_family == AF_INET6)
1230 ((struct sockaddr_in6*)&ss)->sin6_port = htons(port);
1235 error = nfs_portmap_lookup(nmp, vfs_context_current(), (struct sockaddr*)&ss,
1237 if (ss.ss_family == AF_INET)
1238 port = ntohs(((struct sockaddr_in*)&ss)->sin_port);
1239 else if (ss.ss_family == AF_INET6)
1240 port = ntohs(((struct sockaddr_in6*)&ss)->sin6_port);
1244 saddr = (struct sockaddr*)&ss;
4864 struct sockaddr_storage ss;
4885 ss.ss_len = saddr->sa_len;
4886 ss.ss_family = saddr->sa_family;
4887 if (ss.ss_family == AF_INET) {
4888 ((struct sockaddr_in*)&ss)->sin_addr.s_addr = INADDR_ANY;
4889 ((struct sockaddr_in*)&ss)->sin_port = htons(0);
4890 } else if (ss.ss_family == AF_INET6) {
4891 ((struct sockaddr_in6*)&ss)->sin6_addr = in6addr_any;
4892 ((struct sockaddr_in6*)&ss)->sin6_port = htons(0);
4897 error = sock_bind(newso, (struct sockaddr *)&ss);
5034 struct sockaddr_storage ss;
5035 struct sockaddr *saddr = (struct sockaddr*)&ss;
5043 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));
5103 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));
5122 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));