Lines Matching refs:ss
530 set_bind_addr(struct sockaddr_storage *ss, char *bind_addr)
540 hints.ai_family = ss->ss_family;
547 (void) memcpy(SS_SINADDR(*ss), SS_SINADDR(*newss),
548 SS_ADDRLEN(*ss));
810 struct sockaddr_storage *ss;
815 ss = &si->local_addr;
818 ss->ss_family = AF_INET6;
820 ((struct sockaddr_in6 *)ss)->sin6_addr =
823 ss->ss_family = AF_INET;
824 ((struct sockaddr_in *)ss)->sin_addr.
827 if (set_bind_addr(ss, cfg->bind_addr) != 0) {
1524 struct sockaddr_storage ss;
1529 size = (socklen_t)sizeof (ss);
1530 if (getpeername(s, (struct sockaddr *)&ss, &size) == 0) {
1532 inet_ntop_native(ss.ss_family, (ss.ss_family == AF_INET6 ?
1533 (void *)&((struct sockaddr_in6 *)(&ss))->sin6_addr :
1534 (void *)&((struct sockaddr_in *)(&ss))->sin_addr), abuf,