/system/bt/gd/shim/ |
D | dumpsys_test.cc | 88 socklen_t optlen = sizeof(socket_buffer_size); in GetSocketBufferSize() local 89 getsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, (void*)&socket_buffer_size, &optlen); in GetSocketBufferSize() 94 socklen_t optlen = sizeof(socket_buffer_size); in SetSocketBufferSize() local 95 … ASSERT_EQ(0, setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, (const void*)&socket_buffer_size, optlen)); in SetSocketBufferSize()
|
/system/core/libnetutils/ |
D | dhcpclient.c | 168 int optlen; in decode_dhcp_msg() local 191 optlen = *x++; in decode_dhcp_msg() 193 if (optlen > len) { in decode_dhcp_msg() 198 if (optlen >= 4) { in decode_dhcp_msg() 205 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg() 208 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4); in decode_dhcp_msg() 209 if (optlen >= 8) memcpy(&info->dns2, x + 4, 4); in decode_dhcp_msg() 212 if (optlen >= 4) { in decode_dhcp_msg() 218 if (optlen >= 4) memcpy(&info->serveraddr, x, 4); in decode_dhcp_msg() 226 x += optlen; in decode_dhcp_msg() [all …]
|
/system/core/libcutils/ |
D | uevent.cpp | 99 socklen_t optlen = sizeof(buf_sz_readback); in uevent_open_socket() local 111 getsockopt(s, SOL_SOCKET, SO_RCVBUF, &buf_sz_readback, &optlen) < 0) { in uevent_open_socket()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Syscalls.h | 53 socklen_t *optlen) const = 0; 56 socklen_t optlen) const = 0; 125 Status getsockopt(Fd sock, int level, int optname, void* optval, socklen_t* optlen) const { in getsockopt() argument 126 return getsockopt(sock, level, optname, optval, optlen); in getsockopt()
|
D | MockSyscalls.h | 41 socklen_t *optlen)); 43 socklen_t optlen));
|
/system/netd/libnetdutils/ |
D | Syscalls.cpp | 69 socklen_t* optlen) const override { in getsockopt() 70 auto rv = ::getsockopt(sock.get(), level, optname, optval, optlen); in getsockopt() 78 socklen_t optlen) const override { in setsockopt() 79 auto rv = ::setsockopt(sock.get(), level, optname, optval, optlen); in setsockopt()
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 480 uint16_t optlen = opthdr->nd_opt_len; in parseNdUserOptMessage() local 481 if (optlen * 8 > len) { in parseNdUserOptMessage() 483 optlen * 8, len, opthdr->nd_opt_type); in parseNdUserOptMessage() 492 if ((optlen < 3) || !(optlen & 0x1)) { in parseNdUserOptMessage() 493 SLOGE("Invalid optlen %d for RDNSS option\n", optlen); in parseNdUserOptMessage() 496 const int numaddrs = (optlen - 1) / 2; in parseNdUserOptMessage()
|
/system/netd/server/ |
D | XfrmControllerTest.cpp | 505 size_t optlen = 0; in TEST_P() local 522 .WillOnce(DoAll(WithArg<3>(Invoke(SavePolicy)), SaveArg<4>(&optlen), in TEST_P() 531 EXPECT_EQ(sizeof(Policy), optlen); in TEST_P() 547 socklen_t optlen; in TEST_P() local 559 .WillOnce(DoAll(SaveArg<3>(&optval), SaveArg<4>(&optlen), in TEST_P() 566 EXPECT_EQ(static_cast<socklen_t>(0), optlen); in TEST_P()
|
D | XfrmController.cpp | 471 socklen_t optlen = sizeof(optval); in ipSecSetEncapSocketOwner() local 473 getSyscallInstance().getsockopt(Fd(fd), IPPROTO_UDP, UDP_ENCAP, &optval, &optlen); in ipSecSetEncapSocketOwner()
|
/system/core/adb/ |
D | sysdeps.h | 196 socklen_t optlen); 623 socklen_t optlen) { in adb_setsockopt() argument 624 return setsockopt(fd.get(), level, optname, optval, optlen); in adb_setsockopt()
|
D | sysdeps_win32.cpp | 1095 int adb_setsockopt(borrowed_fd fd, int level, int optname, const void* optval, socklen_t optlen) { in adb_setsockopt() argument 1109 setsockopt(fh->fh_socket, level, optname, reinterpret_cast<const char*>(optval), optlen); in adb_setsockopt() 1120 static int adb_getsockname(borrowed_fd fd, struct sockaddr* sockaddr, socklen_t* optlen) { in adb_getsockname() argument 1129 int result = getsockname(fh->fh_socket, sockaddr, optlen); in adb_getsockname()
|