Home
last modified time | relevance | path

Searched refs:sa_family (Results 1 – 9 of 9) sorted by relevance

/bionic/libc/kernel/uapi/linux/
Dif_pppox.h36 __kernel_sa_family_t sa_family; member
44 __kernel_sa_family_t sa_family; member
49 __kernel_sa_family_t sa_family; member
54 __kernel_sa_family_t sa_family; member
59 __kernel_sa_family_t sa_family; member
Dnfc.h130 __kernel_sa_family_t sa_family; member
137 __kernel_sa_family_t sa_family; member
Dmptcp.h72 __kernel_sa_family_t sa_family; member
/bionic/tests/
Difaddrs_test.cpp57 if (addr->ifa_addr && addr->ifa_addr->sa_family == AF_INET) lo_inet4 = addr; in TEST()
58 else if (addr->ifa_addr && addr->ifa_addr->sa_family == AF_INET6) lo_inet6 = addr; in TEST()
59 else if (addr->ifa_addr && addr->ifa_addr->sa_family == AF_PACKET) lo_packet = addr; in TEST()
89 int family = addr->ifa_addr ? addr->ifa_addr->sa_family : in TEST()
90 addr->ifa_broadaddr ? addr->ifa_broadaddr->sa_family : in TEST()
121 ifr.ifr_addr.sa_family = AF_INET; in CheckAddressIsInSet()
151 if (addr->ifa_name && addr->ifa_addr && addr->ifa_addr->sa_family == AF_INET) { in TEST()
155 if (addr->ifa_name && addr->ifa_broadaddr && addr->ifa_broadaddr->sa_family == AF_INET) { in TEST()
180 int family = addr->sa_family; in print_sockaddr_inet()
229 int family = ifa->ifa_addr ? ifa->ifa_addr->sa_family : in TEST()
[all …]
/bionic/libc/dns/resolv/
Dres_send.c228 switch (sa->sa_family) { in res_ourserver_p()
692 if (sa->sa_family == AF_INET) in get_salen()
694 else if (sa->sa_family == AF_INET6) in get_salen()
803 statp->_vcsock = socket(nsap->sa_family, SOCK_STREAM | SOCK_CLOEXEC, 0); in send_vc()
829 if (random_bind(statp->_vcsock,nsap->sa_family) < 0) { in send_vc()
1089 EXT(statp).nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM | SOCK_CLOEXEC, 0); in send_dg()
1126 if (random_bind(EXT(statp).nssocks[ns], nsap->sa_family) < 0) { in send_dg()
1328 if (a->sa_family != b->sa_family) in sock_eq()
1330 switch (a->sa_family) { in sock_eq()
/bionic/libc/dns/net/
Dgetnameinfo.c127 switch (sa->sa_family) { in android_getnameinfofornet()
194 family = sa->sa_family; in getnameinfo_inet()
239 switch (sa->sa_family) { in getnameinfo_inet()
Dgetaddrinfo.c1125 ai->ai_addr->sa_family = ai->ai_family = afd->a_af; in get_ai()
1514 if (addr->sa_family == AF_INET6) { in _get_scope()
1530 } else if (addr->sa_family == AF_INET) { in _get_scope()
1576 if (addr->sa_family == AF_INET) { in _get_label()
1578 } else if (addr->sa_family == AF_INET6) { in _get_label()
1618 if (addr->sa_family == AF_INET) { in _get_precedence()
1620 } else if (addr->sa_family == AF_INET6) { in _get_precedence()
1756 if (a1->has_src_addr && a1->ai->ai_addr->sa_family == AF_INET6 && in _rfc6724_compare()
1757 a2->has_src_addr && a2->ai->ai_addr->sa_family == AF_INET6) { in _rfc6724_compare()
1793 switch (addr->sa_family) { in _find_src_addr()
[all …]
/bionic/tests/headers/posix/
Dsys_socket_h.c38 STRUCT_MEMBER(struct sockaddr, sa_family_t, sa_family); in sys_socket_h()
/bionic/libc/include/sys/
Dsocket.h70 sa_family_t sa_family; member