Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 18 of 18) sorted by relevance

/system/connectivity/shill/net/
Dsockets.cc44 socklen_t* addrlen) const { in Accept()
45 return HANDLE_EINTR(accept(sockfd, addr, addrlen)); in Accept()
54 socklen_t addrlen) const { in Bind()
55 return bind(sockfd, addr, addrlen); in Bind()
85 socklen_t addrlen) const { in Connect()
86 return HANDLE_EINTR(connect(sockfd, addr, addrlen)); in Connect()
99 socklen_t* addrlen) const { in GetSockName()
100 return getsockname(sockfd, addr, addrlen); in GetSockName()
127 socklen_t* addrlen) const { in RecvFrom()
128 return HANDLE_EINTR(recvfrom(sockfd, buf, len, flags, src_addr, addrlen)); in RecvFrom()
[all …]
Dmock_sockets.h35 socklen_t* addrlen));
38 socklen_t addrlen));
44 socklen_t addrlen));
47 socklen_t* addrlen));
56 socklen_t* addrlen));
69 socklen_t addrlen));
Dsockets.h45 socklen_t* addrlen) const;
53 socklen_t addrlen) const;
70 socklen_t addrlen) const;
81 socklen_t* addrlen) const;
94 struct sockaddr* src_addr, socklen_t* addrlen) const;
115 socklen_t addrlen) const;
Dnetlink_socket_unittest.cc77 struct sockaddr* src_addr, socklen_t* addrlen) { in FakeSuccessfulRead() argument
/system/netd/server/
DSockDiag.cpp143 uint8_t addrlen; in sendDumpRequest() local
147 addrlen = sizeof(ina); in sendDumpRequest()
152 addrlen = sizeof(mapped); in sendDumpRequest()
156 addrlen = sizeof(in6a); in sendDumpRequest()
161 uint8_t prefixlen = addrlen * 8; in sendDumpRequest()
162 uint8_t yesjump = sizeof(inet_diag_bc_op) + sizeof(inet_diag_hostcond) + addrlen; in sendDumpRequest()
186 attrs.nla.nla_len = sizeof(attrs) + addrlen; in sendDumpRequest()
191 { addr, addrlen }, in sendDumpRequest()
/system/netd/client/
DNetdClient.cpp52 int netdClientAccept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { in netdClientAccept4() argument
53 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags); in netdClientAccept4()
75 int netdClientConnect(int sockfd, const sockaddr* addr, socklen_t addrlen) { in netdClientConnect() argument
83 return libcConnect(sockfd, addr, addrlen); in netdClientConnect()
/system/core/libnetutils/
Difc_utils.c266 size_t addrlen; in ifc_act_on_address() local
300 addrlen = INET_ADDRLEN; in ifc_act_on_address()
304 addrlen = INET6_ADDRLEN; in ifc_act_on_address()
326 rta->rta_len = RTA_LENGTH(addrlen); in ifc_act_on_address()
327 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen); in ifc_act_on_address()
328 memcpy(RTA_DATA(rta), addr, addrlen); in ifc_act_on_address()
334 rta->rta_len = RTA_LENGTH(addrlen); in ifc_act_on_address()
335 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen); in ifc_act_on_address()
337 memcpy(RTA_DATA(rta), addr, addrlen); in ifc_act_on_address()
/system/extras/tests/net_test/
Dnet_test.py356 addrlen = 32
358 addrlen = 8
382 % (addrlen, addrlen, end_regexp))
Dsock_diag.py249 addrlen = {AF_INET:4, AF_INET6: 16}[family]
250 return inet_ntop(family, addr[:addrlen])
/system/core/adb/
Djdwp_service.cpp464 socklen_t addrlen; in jdwp_control_init() local
486 addrlen = (pathlen + sizeof(addr.sun_family)); in jdwp_control_init()
488 if (bind(s, reinterpret_cast<sockaddr*>(&addr), addrlen) < 0) { in jdwp_control_init()
528 socklen_t addrlen = sizeof(ss); in jdwp_control_event() local
533 s = adb_socket_accept(control->listen_socket, addrp, &addrlen); in jdwp_control_event()
Dsysdeps.h286 extern int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen);
660 static __inline__ int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen) in adb_socket_accept() argument
664 fd = TEMP_FAILURE_RETRY( accept( serverfd, addr, addrlen ) ); in adb_socket_accept()
Dsysdeps_win32.cpp1051 int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen) in adb_socket_accept() argument
1068 fh->fh_socket = accept( serverfh->fh_socket, addr, addrlen ); in adb_socket_accept()
/system/connectivity/shill/
Dconnection_health_checker.cc388 socklen_t addrlen = sizeof(addr); in GetSocketInfo() local
392 &addrlen) != 0) { in GetSocketInfo()
402 CHECK_EQ(sizeof(struct sockaddr_in), addrlen); in GetSocketInfo()
Deap_listener_unittest.cc64 struct sockaddr* src_addr, socklen_t* addrlen);
107 socklen_t* addrlen) { in SimulateRecvFrom() argument
Darp_client_unittest.cc63 struct sockaddr* src_addr, socklen_t* addrlen);
131 socklen_t* addrlen) { in SimulateRecvFrom() argument
Dhttp_proxy.cc120 socklen_t addrlen = sizeof(addr); in Start() local
129 &addrlen) < 0 || in Start()
/system/netd/tests/
Dbinder_test.cpp382 socklen_t addrlen = sizeof(server6); in fakeRemoteSocketPair() local
383 ASSERT_EQ(0, getsockname(*serverSocket, (struct sockaddr *) &server6, &addrlen)); in fakeRemoteSocketPair()
390 ASSERT_EQ(0, getsockname(*clientSocket, (struct sockaddr *) &client6, &addrlen)); in fakeRemoteSocketPair()
392 *acceptedSocket = accept(*serverSocket, (struct sockaddr *) &server6, &addrlen); in fakeRemoteSocketPair()
/system/connectivity/shill/vpn/
Dopenvpn_management_server.cc92 socklen_t addrlen = sizeof(addr); in Start() local
97 socket, reinterpret_cast<struct sockaddr*>(&addr), addrlen) < 0 || in Start()
100 socket, reinterpret_cast<struct sockaddr*>(&addr), &addrlen) < 0) { in Start()