Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/apf/
DLegacyApfFilter.java778 private long add4ByteLifetimeOption(int optionType, int optionLength) { in add4ByteLifetimeOption() argument
782 addMatchSection(optionLength - ICMP6_4_BYTE_LIFETIME_OFFSET in add4ByteLifetimeOption()
872 final int optionLength = getUint8(mPacket, position + 1) * 8; in Ra() local
900 lifetime = add4ByteLifetimeOption(optionType, optionLength); in Ra()
906 lifetime = add4ByteLifetimeOption(optionType, optionLength); in Ra()
912 lifetime = add4ByteLifetimeOption(optionType, optionLength); in Ra()
918 mPacket.position(position + optionLength); in Ra()
921 if (optionLength <= 0) { in Ra()
923 "Invalid option length opt=%d len=%d", optionType, optionLength)); in Ra()
DApfFilter.java895 private long add4ByteLifetimeOption(int optionLength, int min) { in add4ByteLifetimeOption() argument
899 addMatchSection(optionLength - ICMP6_4_BYTE_LIFETIME_OFFSET in add4ByteLifetimeOption()
980 final int optionLength = getUint8(mPacket, position + 1) * 8; in Ra() local
981 if (optionLength <= 0) { in Ra()
983 "Invalid option length opt=%d len=%d", optionType, optionLength)); in Ra()
1014 lifetime = add4ByteLifetimeOption(optionLength, mMinRdnssLifetimeSec); in Ra()
1020 lifetime = add4ByteLifetimeOption(optionLength, mAcceptRaMinLft); in Ra()
1028 addMatchSection(optionLength); in Ra()
1038 addIgnoreSection(optionLength - 2); in Ra()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DLegacyApfTest.java1282 int optionLength; in addRioOption() local
1284 optionLength = 1; in addRioOption()
1286 optionLength = 2; in addRioOption()
1288 optionLength = 3; in addRioOption()
1291 ByteBuffer buffer = ByteBuffer.allocate(optionLength * 8); in addRioOption()
1294 buffer.put((byte) optionLength); // Length in 8-byte units in addRioOption()
1300 buffer.put(prefixBytes, 0, (optionLength - 1) * 8); in addRioOption()
1337 int optionLength = 1 + 2 * servers.length; // In 8-byte units in addRdnssOption() local
1338 ByteBuffer buffer = ByteBuffer.allocate(optionLength * 8); in addRdnssOption()
1341 buffer.put((byte) optionLength); // Length in addRdnssOption()
DApfTest.java2352 int optionLength; in addRioOption() local
2354 optionLength = 1; in addRioOption()
2356 optionLength = 2; in addRioOption()
2358 optionLength = 3; in addRioOption()
2361 ByteBuffer buffer = ByteBuffer.allocate(optionLength * 8); in addRioOption()
2364 buffer.put((byte) optionLength); // Length in 8-byte units in addRioOption()
2370 buffer.put(prefixBytes, 0, (optionLength - 1) * 8); in addRioOption()
2407 int optionLength = 1 + 2 * servers.length; // In 8-byte units in addRdnssOption() local
2408 ByteBuffer buffer = ByteBuffer.allocate(optionLength * 8); in addRdnssOption()
2411 buffer.put((byte) optionLength); // Length in addRdnssOption()