/system/connectivity/shill/net/ |
D | sockets.cc | 44 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 …]
|
D | mock_sockets.h | 35 socklen_t* addrlen)); 38 socklen_t addrlen)); 44 socklen_t addrlen)); 47 socklen_t* addrlen)); 56 socklen_t* addrlen)); 69 socklen_t addrlen));
|
D | sockets.h | 45 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;
|
D | netlink_socket_unittest.cc | 77 struct sockaddr* src_addr, socklen_t* addrlen) { in FakeSuccessfulRead() argument
|
/system/netd/server/ |
D | SockDiag.cpp | 143 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/ |
D | NetdClient.cpp | 52 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/ |
D | ifc_utils.c | 266 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/ |
D | net_test.py | 356 addrlen = 32 358 addrlen = 8 382 % (addrlen, addrlen, end_regexp))
|
D | sock_diag.py | 249 addrlen = {AF_INET:4, AF_INET6: 16}[family] 250 return inet_ntop(family, addr[:addrlen])
|
/system/core/adb/ |
D | jdwp_service.cpp | 464 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()
|
D | sysdeps.h | 286 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()
|
D | sysdeps_win32.cpp | 1051 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/ |
D | connection_health_checker.cc | 388 socklen_t addrlen = sizeof(addr); in GetSocketInfo() local 392 &addrlen) != 0) { in GetSocketInfo() 402 CHECK_EQ(sizeof(struct sockaddr_in), addrlen); in GetSocketInfo()
|
D | eap_listener_unittest.cc | 64 struct sockaddr* src_addr, socklen_t* addrlen); 107 socklen_t* addrlen) { in SimulateRecvFrom() argument
|
D | arp_client_unittest.cc | 63 struct sockaddr* src_addr, socklen_t* addrlen); 131 socklen_t* addrlen) { in SimulateRecvFrom() argument
|
D | http_proxy.cc | 120 socklen_t addrlen = sizeof(addr); in Start() local 129 &addrlen) < 0 || in Start()
|
/system/netd/tests/ |
D | binder_test.cpp | 382 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/ |
D | openvpn_management_server.cc | 92 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()
|