Searched refs:optionLength (Results 1 – 2 of 2) sorted by relevance
748 private long add4ByteLifetimeOption(int optionType, int optionLength) { in add4ByteLifetimeOption() argument752 addMatchSection(optionLength - ICMP6_4_BYTE_LIFETIME_OFFSET in add4ByteLifetimeOption()813 final int optionLength = getUint8(mPacket, position + 1) * 8; in Ra() local839 lifetime = add4ByteLifetimeOption(optionType, optionLength); in Ra()844 lifetime = add4ByteLifetimeOption(optionType, optionLength); in Ra()848 lifetime = add4ByteLifetimeOption(optionType, optionLength); in Ra()854 mPacket.position(position + optionLength); in Ra()857 if (optionLength <= 0) { in Ra()859 "Invalid option length opt=%d len=%d", optionType, optionLength)); in Ra()
1848 int optionLength = 1 + 2 * servers.length; // In 8-byte units in addRdnssOption() local1850 packet.put((byte) optionLength); // Length in addRdnssOption()1862 int optionLength; in addRioOption() local1864 optionLength = 1; in addRioOption()1866 optionLength = 2; in addRioOption()1868 optionLength = 3; in addRioOption()1872 packet.put((byte) optionLength); // Length in 8-byte units in addRioOption()1878 packet.put(prefixBytes, 0, (optionLength - 1) * 8); in addRioOption()