Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNduseroptMessageTest.java199 final int optLen = MSG_PREF64.length() / 2; // 1 byte = 2 hex chars in testTruncation() local
200 for (int len = 0; len < optLen; len++) { in testTruncation()
203 if (len < optLen) { in testTruncation()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java641 int optLen = getUint8(mPacket, offset + 1) * 8; in rdnssOptionToString() local
642 if (optLen < 24) return; // Malformed or empty. in rdnssOptionToString()
644 int numServers = (optLen - 8) / 16; in rdnssOptionToString()
653 int optLen = getUint8(mPacket, offset + 1) * 8; in rioOptionToString() local
654 if (optLen < 8 || optLen > 24) return; // Malformed or empty. in rioOptionToString()
662 System.arraycopy(mPacket.array(), offset + 8, prefix, 0, optLen - 8); in rioOptionToString()