• Home
  • Raw
  • Download

Lines Matching refs:sa

113 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen,  in getnameinfo()  argument
116 return android_getnameinfofornet(sa, salen, host, hostlen, serv, servlen, flags, in getnameinfo()
120 int android_getnameinfofornet(const struct sockaddr* sa, socklen_t salen, char* host, in android_getnameinfofornet() argument
124 switch (sa->sa_family) { in android_getnameinfofornet()
127 return getnameinfo_inet(sa, salen, host, hostlen, in android_getnameinfofornet()
130 return getnameinfo_local(sa, salen, host, hostlen, in android_getnameinfofornet()
143 getnameinfo_local(const struct sockaddr *sa, socklen_t salen, in getnameinfo_local() argument
148 (const struct sockaddr_un *)(const void *)sa; in getnameinfo_local()
169 getnameinfo_inet(const struct sockaddr* sa, socklen_t salen, in getnameinfo_inet() argument
188 if (sa == NULL) in getnameinfo_inet()
191 family = sa->sa_family; in getnameinfo_inet()
207 port = ((const struct sockinet *)(const void *)sa)->si_port; in getnameinfo_inet()
208 addr = (const char *)(const void *)sa + afd->a_off; in getnameinfo_inet()
236 switch (sa->sa_family) { in getnameinfo_inet()
240 (const void *)sa)->sin_addr.s_addr); in getnameinfo_inet()
251 sin6 = (const struct sockaddr_in6 *)(const void *)sa; in getnameinfo_inet()
295 if ((error = ip6_parsenumeric(sa, addr, host, in getnameinfo_inet()
343 if ((error = ip6_parsenumeric(sa, addr, host, in getnameinfo_inet()
363 ip6_parsenumeric(const struct sockaddr *sa, const char *addr, char *host, in ip6_parsenumeric() argument
369 assert(sa != NULL); in ip6_parsenumeric()
381 if (((const struct sockaddr_in6 *)(const void *)sa)->sin6_scope_id) { in ip6_parsenumeric()
386 (const struct sockaddr_in6 *)(const void *)sa, in ip6_parsenumeric()