Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/dhcp6/
DDhcp6Packet.java265 final int optionLen = buffer.getShort() & 0xFFFF; in decode() local
276 if (optionLen > 2) { in decode()
277 skipOption(buffer, optionLen - 2); in decode()
281 skipOption(buffer, optionLen); in decode()
414 private static void skipOption(@NonNull final ByteBuffer packet, int optionLen) in skipOption() argument
416 for (int i = 0; i < optionLen; i++) { in skipOption()
471 final int optionLen = packet.getShort() & 0xFFFF; in decode() local
476 expectedLen = optionLen; in decode()
482 expectedLen = optionLen; in decode()
488 expectedLen = optionLen; in decode()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java722 int optionLen = 4 * addrs.size(); in addTlv() local
723 if (optionLen > MAX_OPTION_LEN) { in addTlv()
725 + optionLen + " vs. " + MAX_OPTION_LEN); in addTlv()
729 buf.put((byte)(optionLen)); in addTlv()
968 private static int skipOption(ByteBuffer packet, int optionLen) in skipOption() argument
971 for (int i = 0; i < optionLen; i++) { in skipOption()
1195 int optionLen = packet.get() & 0xFF; in decodeFullPacket() local
1199 skipOption(packet, optionLen); in decodeFullPacket()
1209 for (expectedLen = 0; expectedLen < optionLen; expectedLen += 4) { in decodeFullPacket()
1214 for (expectedLen = 0; expectedLen < optionLen; expectedLen += 4) { in decodeFullPacket()
[all …]
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/
DPacketFilter.kt143 val optionLen = packet[it + 1] in findDhcpOption() constant
144 return packet.copyOfRange(it + 2 /* type, length bytes */, it + 2 + optionLen) in findDhcpOption()
151 val optionLen = packet[searchOffset + 1] in findOptionOffset() constant
152 findOptionOffset(packet, option, searchOffset + 2 + optionLen) in findOptionOffset()