Searched refs:optionLen (Results 1 – 3 of 3) sorted by relevance
265 final int optionLen = buffer.getShort() & 0xFFFF; in decode() local276 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() argument416 for (int i = 0; i < optionLen; i++) { in skipOption()471 final int optionLen = packet.getShort() & 0xFFFF; in decode() local476 expectedLen = optionLen; in decode()482 expectedLen = optionLen; in decode()488 expectedLen = optionLen; in decode()[all …]
722 int optionLen = 4 * addrs.size(); in addTlv() local723 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() argument971 for (int i = 0; i < optionLen; i++) { in skipOption()1195 int optionLen = packet.get() & 0xFF; in decodeFullPacket() local1199 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 …]
143 val optionLen = packet[it + 1] in findDhcpOption() constant144 return packet.copyOfRange(it + 2 /* type, length bytes */, it + 2 + optionLen) in findDhcpOption()151 val optionLen = packet[searchOffset + 1] in findOptionOffset() constant152 findOptionOffset(packet, option, searchOffset + 2 + optionLen) in findOptionOffset()