Home
last modified time | relevance | path

Searched refs:sockaddr (Results 1 – 25 of 39) sorted by relevance

12

/bionic/libc/include/
Difaddrs.h42 struct sockaddr* ifa_addr;
43 struct sockaddr* ifa_netmask;
45 struct sockaddr* ifu_broadaddr;
46 struct sockaddr* ifu_dstaddr;
Dnetdb.h117 struct sockaddr *ai_addr; /* binary address */
225 int getnameinfo(const struct sockaddr*, socklen_t, char*, size_t, char*, size_t, int);
/bionic/libc/kernel/uapi/linux/
Dif_arp.h114 struct sockaddr arp_pa;
115 struct sockaddr arp_ha;
117 struct sockaddr arp_netmask;
122 struct sockaddr arp_pa;
124 struct sockaddr arp_ha;
126 struct sockaddr arp_netmask;
Droute.h26 struct sockaddr rt_dst;
27 struct sockaddr rt_gateway;
29 struct sockaddr rt_genmask;
Dif.h156 struct sockaddr ifru_addr;
157 struct sockaddr ifru_dstaddr;
159 struct sockaddr ifru_broadaddr;
160 struct sockaddr ifru_netmask;
161 struct sockaddr ifru_hwaddr;
Dwireless.h361 struct sockaddr addr;
374 struct sockaddr bssid;
386 struct sockaddr addr;
396 struct sockaddr addr;
406 struct sockaddr bssid;
412 struct sockaddr src_addr;
421 struct sockaddr bssid;
450 struct sockaddr ap_addr;
451 struct sockaddr addr;
540 #define IW_EV_ADDR_LEN (IW_EV_LCP_LEN + sizeof(struct sockaddr))
[all …]
Dsocket.h22 #define _K_SS_ALIGNSIZE (__alignof__(struct sockaddr *))
Derrqueue.h41 #define SO_EE_OFFENDER(ee) ((struct sockaddr *) ((ee) + 1))
Dvm_sockets.h49 …unsigned char svm_zero[sizeof(struct sockaddr) - sizeof(sa_family_t) - sizeof(unsigned short) - si…
Dnfs4_mount.h46 struct sockaddr __user * host_addr;
Dphonet.h97 __u8 spn_zero[sizeof(struct sockaddr) - sizeof(__kernel_sa_family_t) - 3];
/bionic/libc/private/
DNetdClientDispatch.h26 int (*accept4)(int, struct sockaddr*, socklen_t*, int);
27 int (*connect)(int, const struct sockaddr*, socklen_t);
/bionic/libc/bionic/
DNetdClientDispatch.cpp25 extern "C" __socketcall int __accept4(int, sockaddr*, socklen_t*, int);
26 extern "C" __socketcall int __connect(int, const sockaddr*, socklen_t);
Daccept.cpp19 int accept(int sockfd, sockaddr* addr, socklen_t* addrlen) { in accept()
Dconnect.cpp21 int connect(int sockfd, const sockaddr* addr, socklen_t addrlen) { in connect()
Daccept4.cpp21 int accept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { in accept4()
Dnetinet_in.cpp64 int rc = TEMP_FAILURE_RETRY(bind(sd, reinterpret_cast<sockaddr*>(sin), sizeof(*sin))); in bindresvport()
Difaddrs.cpp100 ifa.ifa_dstaddr = reinterpret_cast<sockaddr*>(memcpy(&ifa_ifu, &addr, sizeof(addr))); in SetLocalAddress()
116 ifa.ifa_netmask = reinterpret_cast<sockaddr*>(&netmask); in SetNetmask()
127 sockaddr* CopyAddress(int family, const void* data, size_t byteCount, sockaddr_storage* ss) { in CopyAddress()
140 return reinterpret_cast<sockaddr*>(ss); in CopyAddress()
/bionic/libc/include/sys/
Dsocket.h76 struct sockaddr { struct
302 __socketcall int accept(int, struct sockaddr*, socklen_t*);
303 __socketcall int accept4(int, struct sockaddr*, socklen_t*, int) __INTRODUCED_IN(21);
304 __socketcall int bind(int, const struct sockaddr*, socklen_t);
305 __socketcall int connect(int, const struct sockaddr*, socklen_t);
306 __socketcall int getpeername(int, struct sockaddr*, socklen_t*);
307 __socketcall int getsockname(int, struct sockaddr*, socklen_t*);
323 __socketcall ssize_t sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t)
325 __socketcall ssize_t recvfrom(int, void*, size_t, int, struct sockaddr*,
328 extern ssize_t __sendto_chk(int, const void*, size_t, size_t, int, const struct sockaddr*,
[all …]
/bionic/libc/dns/net/
Dgetnameinfo.c92 static int getnameinfo_inet(const struct sockaddr *, socklen_t, char *,
95 static int ip6_parsenumeric(const struct sockaddr *, const char *, char *,
99 static int getnameinfo_local(const struct sockaddr *, socklen_t, char *,
106 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen, in getnameinfo()
113 int android_getnameinfofornet(const struct sockaddr* sa, socklen_t salen, char* host, in android_getnameinfofornet()
136 getnameinfo_local(const struct sockaddr *sa, socklen_t salen, in getnameinfo_local()
162 getnameinfo_inet(const struct sockaddr* sa, socklen_t salen, in getnameinfo_inet()
351 ip6_parsenumeric(const struct sockaddr *sa, const char *addr, char *host, in ip6_parsenumeric()
/bionic/libc/dns/resolv/
Dres_private.h20 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
Dres_send.c139 static int get_salen __P((const struct sockaddr *));
140 static struct sockaddr * get_nsaddr __P((res_state, size_t));
149 const struct sockaddr *, int);
151 static int sock_eq(struct sockaddr *, struct sockaddr *);
158 static int connect_with_timeout(int sock, const struct sockaddr *nsap,
165 struct sockaddr sa;
232 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p()
412 !sock_eq((struct sockaddr *)(void *)&statp->nsaddr_list[ns], in res_nsend()
413 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) { in res_nsend()
422 (struct sockaddr *)(void *)&peer, &peerlen) < 0) { in res_nsend()
[all …]
/bionic/tests/
Dsys_socket_test.cpp49 if (connect(fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr)) < 0) { in ConnectFn()
73 …ASSERT_NE(-1, bind(fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr))) << strerror(errno… in RunTest()
106 int fd_acc = accept4(fd, reinterpret_cast<struct sockaddr*>(addr), &len, SOCK_CLOEXEC); in TestAccept4()
139 int fd_acc = accept(fd, reinterpret_cast<struct sockaddr*>(addr), &len); in TestRecvMMsg()
207 int fd_acc = accept(fd, reinterpret_cast<struct sockaddr*>(addr), &len); in TestSendMMsg()
Dfortify_compilation_test.cpp188 recvfrom(0, buf, 6, 0, reinterpret_cast<sockaddr*>(&addr), NULL); in test_recvfrom()
321 sendto(0, buf, 6, 0, reinterpret_cast<sockaddr*>(&addr), sizeof(sockaddr_in)); in test_sendto()
/bionic/libc/dns/include/
Dresolv_netid.h101 int android_getnameinfofornet(const struct sockaddr *, socklen_t, char *, size_t, char *, size_t, i…

12