Home
last modified time | relevance | path

Searched refs:sockaddr_in (Results 1 – 20 of 20) sorted by relevance

/bionic/tests/headers/posix/
Dnetinet_in_h.c43 TYPE(struct sockaddr_in); in netinet_in_h()
44 STRUCT_MEMBER(struct sockaddr_in, sa_family_t, sin_family); in netinet_in_h()
45 STRUCT_MEMBER(struct sockaddr_in, in_port_t, sin_port); in netinet_in_h()
46 STRUCT_MEMBER(struct sockaddr_in, struct in_addr, sin_addr); in netinet_in_h()
/bionic/libc/kernel/uapi/linux/
Dif_pppol2tp.h28 struct sockaddr_in addr;
42 struct sockaddr_in addr;
Dnfs_mount.h40 struct sockaddr_in addr;
Drxrpc.h31 struct sockaddr_in sin;
Din.h183 struct sockaddr_in { struct
/bionic/libc/bionic/
Dnetinet_in.cpp42 int bindresvport(int sd, struct sockaddr_in* sin) { in bindresvport()
43 sockaddr_in sin0; in bindresvport()
Difaddrs.cpp149 sockaddr_in* ss4 = reinterpret_cast<sockaddr_in*>(ss); in SockaddrBytes()
/bionic/tests/
Difaddrs_test.cpp60 const sockaddr_in* sa_inet4 = reinterpret_cast<const sockaddr_in*>(lo_inet4->ifa_addr); in TEST()
132 sockaddr_in* sock = reinterpret_cast<sockaddr_in*>(&ifr.ifr_addr); in CheckAddressIsInSet()
147 auto sock = reinterpret_cast<sockaddr_in*>(addr->ifa_addr); in TEST()
151 auto sock = reinterpret_cast<sockaddr_in*>(addr->ifa_broadaddr); in TEST()
177 (family == AF_INET) ? sizeof(sockaddr_in) : sizeof(sockaddr_in6), in print_sockaddr_inet()
Dnetdb_test.cpp37 ASSERT_EQ(25U, ntohs(reinterpret_cast<sockaddr_in*>(ai->ai_addr)->sin_port)); in TEST()
76 ASSERT_EQ(25, ntohs(reinterpret_cast<sockaddr_in*>(ai->ai_addr)->sin_port)); in TEST()
122 socklen_t just_right = sizeof(sockaddr_in); in TEST()
123 socklen_t too_little = sizeof(sockaddr_in) - 1; in TEST()
144 sockaddr_in addr; in TEST()
146 memset(&addr, 0, sizeof(sockaddr_in)); in TEST()
Dnetinet_in_test.cpp39 sockaddr_in sin = {.sin_family = AF_INET6}; in TEST()
Dfdtrack_test.cpp306 sockaddr_in addr = { in CreateListener()
/bionic/libc/include/netinet/
Din.h46 int bindresvport(int __fd, struct sockaddr_in* __sin);
/bionic/libc/dns/include/
Dresolv_private.h152 struct sockaddr_in
215 struct sockaddr_in sin;
335 int res_isourserver(const struct sockaddr_in *);
460 int res_nisourserver(const res_state, const struct sockaddr_in *);
/bionic/libc/dns/net/
Dgetnameinfo.c90 {PF_INET, sizeof(struct in_addr), sizeof(struct sockaddr_in),
91 offsetof(struct sockaddr_in, sin_addr)},
242 ntohl(((const struct sockaddr_in *) in getnameinfo_inet()
Dgetaddrinfo.c114 struct sockaddr_in in;
155 sizeof(struct sockaddr_in),
156 offsetof(struct sockaddr_in, sin_addr),
386 static const struct sockaddr_in sin_test = { in _have_ipv4()
1213 ((struct sockaddr_in *)(void *) in get_port()
1531 const struct sockaddr_in *addr4 = (const struct sockaddr_in *)addr; in _get_scope()
1795 len = sizeof(struct sockaddr_in); in _find_src_addr()
/bionic/libc/dns/resolv/
Dres_send.c157 struct sockaddr_in sin;
224 const struct sockaddr_in *inp, *srv; in res_ourserver_p()
230 inp = (const struct sockaddr_in *)(const void *)sa; in res_ourserver_p()
232 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p()
452 struct sockaddr_in ina; in res_nsend()
694 return (sizeof(struct sockaddr_in));
1328 struct sockaddr_in *a4, *b4; in sock_eq()
1335 a4 = (struct sockaddr_in *)(void *)a; in sock_eq()
1336 b4 = (struct sockaddr_in *)(void *)b; in sock_eq()
Dres_data.cpp124 int res_isourserver(const struct sockaddr_in* inp) { in res_isourserver()
Dres_init.c211 u[nserv].sin.sin_len = sizeof(struct sockaddr_in); in __res_vinit()
/bionic/libc/upstream-netbsd/lib/libc/isc/
Deventlib_p.h95 struct sockaddr_in in;
103 struct sockaddr_in in;
/bionic/libc/kernel/uapi/rdma/
Drdma_user_rxe.h49 struct sockaddr_in _sockaddr_in;