Home
last modified time | relevance | path

Searched refs:optLen (Results 1 – 3 of 3) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNduseroptMessageTest.java198 final int optLen = MSG_PREF64.length() / 2; // 1 byte = 2 hex chars in testTruncation() local
199 for (int len = 0; len < optLen; len++) { in testTruncation()
202 if (len < optLen) { in testTruncation()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java640 int optLen = getUint8(mPacket, offset + 1) * 8; in rdnssOptionToString() local
641 if (optLen < 24) return; // Malformed or empty. in rdnssOptionToString()
643 int numServers = (optLen - 8) / 16; in rdnssOptionToString()
652 int optLen = getUint8(mPacket, offset + 1) * 8; in rioOptionToString() local
653 if (optLen < 8 || optLen > 24) return; // Malformed or empty. in rioOptionToString()
661 System.arraycopy(mPacket.array(), offset + 8, prefix, 0, optLen - 8); in rioOptionToString()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java1279 final int optLen = 4;
1281 ByteBuffer option = ByteBuffer.allocate(optLen * ICMPV6_ND_OPTION_LENGTH_SCALING_FACTOR);
1283 option.put((byte) optLen); // Length in 8-byte units
1295 final int optLen = 1 + 2 * servers.length;
1296 ByteBuffer option = ByteBuffer.allocate(optLen * ICMPV6_ND_OPTION_LENGTH_SCALING_FACTOR);
1298 option.put((byte) optLen); // Length in 8-byte units