Home
last modified time | relevance | path

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

12

/bionic/tests/headers/posix/
Dsys_socket_h.c37 TYPE(struct sockaddr); in sys_socket_h()
38 STRUCT_MEMBER(struct sockaddr, sa_family_t, sa_family); in sys_socket_h()
39 STRUCT_MEMBER_ARRAY(struct sockaddr, char/*[]*/, sa_data); in sys_socket_h()
135 FUNCTION(accept, int (*f)(int, struct sockaddr*, socklen_t*)); in sys_socket_h()
136 FUNCTION(bind, int (*f)(int, const struct sockaddr*, socklen_t)); in sys_socket_h()
137 FUNCTION(connect, int (*f)(int, const struct sockaddr*, socklen_t)); in sys_socket_h()
138 FUNCTION(getpeername, int (*f)(int, struct sockaddr*, socklen_t*)); in sys_socket_h()
139 FUNCTION(getsockname, int (*f)(int, struct sockaddr*, socklen_t*)); in sys_socket_h()
143 FUNCTION(recvfrom, ssize_t (*f)(int, void*, size_t, int, struct sockaddr*, socklen_t*)); in sys_socket_h()
146 FUNCTION(sendto, ssize_t (*f)(int, const void*, size_t, int, const struct sockaddr*, socklen_t)); in sys_socket_h()
Dnetdb_h.c69 STRUCT_MEMBER(struct addrinfo, struct sockaddr*, ai_addr); in netdb_h()
110 …FUNCTION(getnameinfo, int (*f)(const struct sockaddr*, socklen_t, char*, size_t, char*, size_t, in… in netdb_h()
112 …FUNCTION(getnameinfo, int (*f)(const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen… in netdb_h()
/bionic/libc/kernel/uapi/linux/
Dif_arp.h98 struct sockaddr arp_pa;
99 struct sockaddr arp_ha;
101 struct sockaddr arp_netmask;
105 struct sockaddr arp_pa;
106 struct sockaddr arp_ha;
108 struct sockaddr arp_netmask;
Droute.h25 struct sockaddr rt_dst;
26 struct sockaddr rt_gateway;
27 struct sockaddr rt_genmask;
Dwireless.h294 struct sockaddr addr;
304 struct sockaddr bssid;
314 struct sockaddr addr;
322 struct sockaddr addr;
330 struct sockaddr bssid;
335 struct sockaddr src_addr;
342 struct sockaddr bssid;
365 struct sockaddr ap_addr;
366 struct sockaddr addr;
437 #define IW_EV_ADDR_LEN (IW_EV_LCP_LEN + sizeof(struct sockaddr))
[all …]
Dif.h150 struct sockaddr ifru_addr;
151 struct sockaddr ifru_dstaddr;
152 struct sockaddr ifru_broadaddr;
153 struct sockaddr ifru_netmask;
154 struct sockaddr ifru_hwaddr;
Dmptcp.h170 struct sockaddr sa_local;
176 struct sockaddr sa_remote;
Dnfs4_mount.h41 struct sockaddr * host_addr;
Dvm_sockets.h52 …unsigned char svm_zero[sizeof(struct sockaddr) - sizeof(sa_family_t) - sizeof(unsigned short) - si…
Derrqueue.h48 #define SO_EE_OFFENDER(ee) ((struct sockaddr *) ((ee) + 1))
/bionic/libc/bionic/
DNetdClientDispatch.cpp29 extern "C" __socketcall int __accept4(int, sockaddr*, socklen_t*, int);
30 extern "C" __socketcall int __connect(int, const sockaddr*, socklen_t);
33 extern "C" __socketcall int __sendto(int, const void*, size_t, int, const sockaddr*, socklen_t);
57 int accept4(int fd, sockaddr* addr, socklen_t* addr_length, int flags) { in accept4()
61 int connect(int fd, const sockaddr* addr, socklen_t addr_length) { in connect()
74 const struct sockaddr* dst_addr, socklen_t dst_addr_length) { in sendto()
Difaddrs.cpp102 ifa.ifa_dstaddr = reinterpret_cast<sockaddr*>(memcpy(&ifa_ifu, &addr, sizeof(addr))); in SetLocalAddress()
118 ifa.ifa_netmask = reinterpret_cast<sockaddr*>(&netmask); in SetNetmask()
129 sockaddr* CopyAddress(int family, const void* data, size_t byteCount, sockaddr_storage* ss) { in CopyAddress()
142 return reinterpret_cast<sockaddr*>(ss); in CopyAddress()
Daccept.cpp19 int accept(int sockfd, sockaddr* addr, socklen_t* addrlen) { in accept()
/bionic/libc/include/
Difaddrs.h54 struct sockaddr* _Nullable ifa_addr;
56 struct sockaddr* _Nullable ifa_netmask;
60 struct sockaddr* _Nullable ifu_broadaddr;
62 struct sockaddr* _Nullable ifu_dstaddr;
Dnetdb.h117 struct sockaddr *ai_addr; /* binary address */
203 int getnameinfo(const struct sockaddr* __sa, socklen_t __sa_length, char* __host, size_t __host_len…
/bionic/libc/private/
DNetdClientDispatch.h25 int (*accept4)(int, struct sockaddr*, socklen_t*, int);
26 int (*connect)(int, const struct sockaddr*, socklen_t);
29 int (*sendto)(int, const void*, size_t, int, const struct sockaddr*, socklen_t);
/bionic/libc/include/sys/
Dsocket.h68 struct sockaddr { struct
290 __socketcall int accept(int __fd, struct sockaddr* __addr, socklen_t* __addr_length);
291 __socketcall int accept4(int __fd, struct sockaddr* __addr, socklen_t* __addr_length, int __flags) …
292 __socketcall int bind(int __fd, const struct sockaddr* __addr, socklen_t __addr_length);
293 __socketcall int connect(int __fd, const struct sockaddr* __addr, socklen_t __addr_length);
294 __socketcall int getpeername(int __fd, struct sockaddr* __addr, socklen_t* __addr_length);
295 __socketcall int getsockname(int __fd, struct sockaddr* __addr, socklen_t* __addr_length);
311 …ndto(int __fd, const void* __buf, size_t __n, int __flags, const struct sockaddr* __dst_addr, sock…
312 __socketcall ssize_t recvfrom(int __fd, void* __buf, size_t __n, int __flags, struct sockaddr* __sr…
/bionic/libc/include/bits/fortify/
Dsocket.h33 extern ssize_t __sendto_chk(int, const void*, size_t, size_t, int, const struct sockaddr*,
35 ssize_t __recvfrom_chk(int, void*, size_t, size_t, int, struct sockaddr*,
41 … fd, void* const buf __pass_object_size0, size_t len, int flags, struct sockaddr* src_addr, sockle… in recvfrom()
56 …oid* const buf __pass_object_size0, size_t len, int flags, const struct sockaddr* dest_addr, sockl… in sendto()
/bionic/libc/dns/resolv/
Dres_send.c139 static int get_salen __P((const struct sockaddr *));
140 static struct sockaddr * get_nsaddr __P((res_state, size_t));
146 const struct sockaddr *, int);
148 static int sock_eq(struct sockaddr *, struct sockaddr *);
150 static int connect_with_timeout(int sock, const struct sockaddr *nsap,
156 struct sockaddr sa;
223 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p()
403 !sock_eq((struct sockaddr *)(void *)&statp->nsaddr_list[ns], in res_nsend()
404 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) { in res_nsend()
413 (struct sockaddr *)(void *)&peer, &peerlen) < 0) { in res_nsend()
[all …]
Dres_private.h20 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
Dres_data.cpp24 extern "C" int res_ourserver_p(const res_state, const struct sockaddr*);
126 return res_ourserver_p(gsa.get(), reinterpret_cast<const sockaddr*>(inp)); in res_isourserver()
/bionic/libc/dns/net/
Dgetnameinfo.c101 static int getnameinfo_inet(const struct sockaddr *, socklen_t, char *,
104 static int ip6_parsenumeric(const struct sockaddr *, const char *, char *,
108 static int getnameinfo_local(const struct sockaddr *, socklen_t, char *,
116 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen, in getnameinfo()
123 int android_getnameinfofornet(const struct sockaddr* sa, socklen_t salen, char* host, in android_getnameinfofornet()
146 getnameinfo_local(const struct sockaddr *sa, socklen_t salen, in getnameinfo_local()
172 getnameinfo_inet(const struct sockaddr* sa, socklen_t salen, in getnameinfo_inet()
366 ip6_parsenumeric(const struct sockaddr *sa, const char *addr, char *host, in ip6_parsenumeric()
/bionic/libc/dns/include/
Dresolv_params.h54 typedef res_sendhookact (*res_send_qhook)(struct sockaddr * const *,
58 typedef res_sendhookact (*res_send_rhook)(const struct sockaddr *,
/bionic/tests/
Dsys_socket_test.cpp51 if (connect(fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr)) < 0) { in ConnectFn()
75 …ASSERT_NE(-1, bind(fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr))) << strerror(errno… in RunTest()
108 int fd_acc = accept4(fd, reinterpret_cast<struct sockaddr*>(addr), &len, SOCK_CLOEXEC); in TestAccept4()
141 int fd_acc = accept(fd, reinterpret_cast<struct sockaddr*>(addr), &len); in TestRecvMMsg()
209 int fd_acc = accept(fd, reinterpret_cast<struct sockaddr*>(addr), &len); in TestSendMMsg()
/bionic/libc/
DSYSCALLS.TXT256 int bind(int, struct sockaddr*, socklen_t) arm,lp64
257 int __connect:connect(int, struct sockaddr*, socklen_t) arm,lp64
259 int __accept4:accept4(int, struct sockaddr*, socklen_t*, int) arm,lp64
260 int getsockname(int, struct sockaddr*, socklen_t*) arm,lp64
261 int getpeername(int, struct sockaddr*, socklen_t*) arm,lp64
262 ssize_t __sendto:sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t) ar…
263 ssize_t recvfrom(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) arm,lp64
274 int bind:socketcall:2(int, struct sockaddr*, int) x86
275 int __connect:socketcall:3(int, struct sockaddr*, socklen_t) x86
277 int getsockname:socketcall:6(int, struct sockaddr*, socklen_t*) x86
[all …]

12