Lines Matching defs:ss
1460 struct sockaddr_storage ss;
1577 bcopy(CAST_DOWN(void *, args.addr), &ss, args.addrlen);
1582 error = copyin(args.addr, &ss, args.addrlen);
1585 ss.ss_len = args.addrlen;
1588 if (ss.ss_family == AF_INET)
1589 sinaddr = &((struct sockaddr_in*)&ss)->sin_addr;
1590 else if (ss.ss_family == AF_INET6)
1591 sinaddr = &((struct sockaddr_in6*)&ss)->sin6_addr;
1594 if (!sinaddr || (inet_ntop(ss.ss_family, sinaddr, uaddr, sizeof(uaddr)) != uaddr)) {
1743 xb_add_32(error, &xb, ((ss.ss_family == AF_INET) ?
1744 ntohs(((struct sockaddr_in*)&ss)->sin_port) :
1745 ntohs(((struct sockaddr_in6*)&ss)->sin6_port)));
3913 struct sockaddr_storage ss;
3914 struct sockaddr *saddr = (struct sockaddr*)&ss;
3923 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));
3948 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));
3997 struct sockaddr_storage ss;
3998 struct sockaddr *saddr = (struct sockaddr*)&ss;
4010 bcopy(nmp->nm_saddr, saddr, min(sizeof(ss), nmp->nm_saddr->sa_len));
4033 bcopy(nmp->nm_saddr, saddr, min(sizeof(ss), nmp->nm_saddr->sa_len));