Searched refs:optlen (Results 1 – 4 of 4) sorted by relevance
/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/libsysutils/src/ |
D | NetlinkEvent.cpp | 437 uint16_t optlen = opthdr->nd_opt_len; in parseNdUserOptMessage() local 438 if (optlen * 8 > len) { in parseNdUserOptMessage() 440 optlen * 8, len, opthdr->nd_opt_type); in parseNdUserOptMessage() 449 if ((optlen < 3) || !(optlen & 0x1)) { in parseNdUserOptMessage() 450 SLOGE("Invalid optlen %d for RDNSS option\n", optlen); in parseNdUserOptMessage() 453 const int numaddrs = (optlen - 1) / 2; in parseNdUserOptMessage()
|
/system/core/adb/ |
D | sysdeps.h | 271 int adb_getsockname(int fd, struct sockaddr* sockaddr, socklen_t* optlen); 278 …ern int adb_setsockopt(int fd, int level, int optname, const void* optval, socklen_t optlen); 731 …__ int adb_setsockopt( int fd, int level, int optname, const void* optval, socklen_t optlen ) in adb_setsockopt() argument 733 return setsockopt( fd, level, optname, optval, optlen ); in adb_setsockopt()
|
D | sysdeps_win32.cpp | 952 int adb_setsockopt( int fd, int level, int optname, const void* optval, socklen_t optlen ) in adb_setsockopt() argument 967 reinterpret_cast<const char*>(optval), optlen ); in adb_setsockopt() 978 int adb_getsockname(int fd, struct sockaddr* sockaddr, socklen_t* optlen) { in adb_getsockname() argument 987 int result = (getsockname)(fh->fh_socket, sockaddr, optlen); in adb_getsockname()
|