Home
last modified time | relevance | path

Searched refs:optlen (Results 1 – 11 of 11) sorted by relevance

/system/core/libnetutils/
Ddhcpclient.c168 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/netd/resolv/
Dres_debug.cpp190 uint16_t optcode, optlen; in do_section() local
201 GETSHORT(optlen, cp); in do_section()
205 if (optlen == 0) { in do_section()
209 for (i = 0; i < optlen; i++) { in do_section()
213 for (i = 0; i < optlen; i++) { in do_section()
219 if (optlen == 0) { in do_section()
223 for (i = 0; i < optlen; i++) { in do_section()
227 for (i = 0; i < optlen; i++) { in do_section()
233 rdatalen -= 4 + optlen; in do_section()
234 cp += optlen; in do_section()
/system/core/libcutils/
Duevent.cpp99 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/
DSyscalls.h53 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()
DMockSyscalls.h41 socklen_t *optlen));
43 socklen_t optlen));
/system/netd/libnetdutils/
DSyscalls.cpp69 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/
DNetlinkEvent.cpp455 uint16_t optlen = opthdr->nd_opt_len; in parseNdUserOptMessage() local
456 if (optlen * 8 > len) { in parseNdUserOptMessage()
458 optlen * 8, len, opthdr->nd_opt_type); in parseNdUserOptMessage()
467 if ((optlen < 3) || !(optlen & 0x1)) { in parseNdUserOptMessage()
468 SLOGE("Invalid optlen %d for RDNSS option\n", optlen); in parseNdUserOptMessage()
471 const int numaddrs = (optlen - 1) / 2; in parseNdUserOptMessage()
/system/core/adb/
Dsysdeps.h179 …ern int adb_setsockopt(int fd, int level, int optname, const void* optval, socklen_t optlen);
545 …__ int adb_setsockopt( int fd, int level, int optname, const void* optval, socklen_t optlen ) in adb_setsockopt() argument
547 return setsockopt( fd, level, optname, optval, optlen ); in adb_setsockopt()
Dsysdeps_win32.cpp1008 int adb_setsockopt(int fd, int level, int optname, const void* optval, socklen_t optlen) { in adb_setsockopt() argument
1022 setsockopt(fh->fh_socket, level, optname, reinterpret_cast<const char*>(optval), optlen); in adb_setsockopt()
1033 int adb_getsockname(int fd, struct sockaddr* sockaddr, socklen_t* optlen) { in adb_getsockname() argument
1042 int result = getsockname(fh->fh_socket, sockaddr, optlen); in adb_getsockname()
/system/netd/server/
DXfrmControllerTest.cpp506 size_t optlen = 0; in TEST_P() local
523 .WillOnce(DoAll(WithArg<3>(Invoke(SavePolicy)), SaveArg<4>(&optlen), in TEST_P()
532 EXPECT_EQ(sizeof(Policy), optlen); in TEST_P()
548 socklen_t optlen; in TEST_P() local
560 .WillOnce(DoAll(SaveArg<3>(&optval), SaveArg<4>(&optlen), in TEST_P()
567 EXPECT_EQ(static_cast<socklen_t>(0), optlen); in TEST_P()
DXfrmController.cpp472 socklen_t optlen = sizeof(optval); in ipSecSetEncapSocketOwner() local
474 getSyscallInstance().getsockopt(Fd(fd), IPPROTO_UDP, UDP_ENCAP, &optval, &optlen); in ipSecSetEncapSocketOwner()