Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java747 private long add4ByteLifetimeOption(int optionType, int optionLength) { in add4ByteLifetimeOption() argument
751 addMatchSection(optionLength - ICMP6_4_BYTE_LIFETIME_OFFSET in add4ByteLifetimeOption()
812 final int optionLength = getUint8(mPacket, position + 1) * 8; in Ra() local
838 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()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1836 int optionLength = 1 + 2 * servers.length; // In 8-byte units in addRdnssOption() local
1838 packet.put((byte) optionLength); // Length in addRdnssOption()
1850 int optionLength; in addRioOption() local
1852 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()