Home
last modified time | relevance | path

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

/system/core/libnetutils/
Ddhcpclient.c170 int optlen; in decode_dhcp_msg() local
193 optlen = *x++; in decode_dhcp_msg()
195 if (optlen > len) { in decode_dhcp_msg()
200 if (optlen >= 4) { in decode_dhcp_msg()
207 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg()
210 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4); in decode_dhcp_msg()
211 if (optlen >= 8) memcpy(&info->dns2, x + 4, 4); in decode_dhcp_msg()
214 if (optlen >= 4) { in decode_dhcp_msg()
220 if (optlen >= 4) memcpy(&info->serveraddr, x, 4); in decode_dhcp_msg()
228 x += optlen; in decode_dhcp_msg()
[all …]
/system/core/libsysutils/src/
DNetlinkEvent.cpp440 uint16_t optlen = opthdr->nd_opt_len; in parseNdUserOptMessage() local
441 if (optlen * 8 > len) { in parseNdUserOptMessage()
443 optlen * 8, len, opthdr->nd_opt_type); in parseNdUserOptMessage()
452 if ((optlen < 3) || !(optlen & 0x1)) { in parseNdUserOptMessage()
453 SLOGE("Invalid optlen %d for RDNSS option\n", optlen); in parseNdUserOptMessage()
456 const int numaddrs = (optlen - 1) / 2; in parseNdUserOptMessage()
/system/connectivity/shill/net/
Dsockets.cc106 socklen_t optlen = sizeof(error); in GetSocketError() local
107 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &error, &optlen) == 0) { in GetSocketError()
/system/core/adb/
Dsysdeps.h291 …ern int adb_setsockopt(int fd, int level, int optname, const void* optval, socklen_t optlen);
775 …__ int adb_setsockopt( int fd, int level, int optname, const void* optval, socklen_t optlen ) in adb_setsockopt() argument
777 return setsockopt( fd, level, optname, optval, optlen ); in adb_setsockopt()
Dsysdeps_win32.cpp1085 int adb_setsockopt( int fd, int level, int optname, const void* optval, socklen_t optlen ) in adb_setsockopt() argument
1100 reinterpret_cast<const char*>(optval), optlen ); in adb_setsockopt()
1111 int adb_getsockname(int fd, struct sockaddr* sockaddr, socklen_t* optlen) { in adb_getsockname() argument
1120 int result = getsockname(fh->fh_socket, sockaddr, optlen); in adb_getsockname()