Searched refs:optionLength (Results 1 – 2 of 2) sorted by relevance
747 private long add4ByteLifetimeOption(int optionType, int optionLength) { in add4ByteLifetimeOption() argument751 addMatchSection(optionLength - ICMP6_4_BYTE_LIFETIME_OFFSET in add4ByteLifetimeOption()812 final int optionLength = getUint8(mPacket, position + 1) * 8; in Ra() local838 lifetime = add4ByteLifetimeOption(optionType, optionLength); in Ra()843 lifetime = add4ByteLifetimeOption(optionType, optionLength); in Ra()847 lifetime = add4ByteLifetimeOption(optionType, optionLength); in Ra()853 mPacket.position(position + optionLength); in Ra()856 if (optionLength <= 0) { in Ra()858 "Invalid option length opt=%d len=%d", optionType, optionLength)); in Ra()
1836 int optionLength = 1 + 2 * servers.length; // In 8-byte units in addRdnssOption() local1838 packet.put((byte) optionLength); // Length in addRdnssOption()1850 int optionLength; in addRioOption() local1852 optionLength = 1; in addRioOption()1854 optionLength = 2; in addRioOption()1856 optionLength = 3; in addRioOption()1860 packet.put((byte) optionLength); // Length in 8-byte units in addRioOption()1866 packet.put(prefixBytes, 0, (optionLength - 1) * 8); in addRioOption()