Home
last modified time | relevance | path

Searched refs:Dhcp6Packet (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp6/
DDhcp6PacketTest.kt45 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6SolicitPacket()
63 assertThrows(Dhcp6Packet.ParseException::class.java) { in testDecodeDhcp6SolicitPacket_incorrectOptionLength()
64 Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6SolicitPacket_incorrectOptionLength()
82 assertThrows(Dhcp6Packet.ParseException::class.java) { in testDecodeDhcp6SolicitPacket_lastTruncatedOption()
83 Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6SolicitPacket_lastTruncatedOption()
101 assertThrows(Dhcp6Packet.ParseException::class.java) { in testDecodeDhcp6SolicitPacket_middleTruncatedOption()
102 Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6SolicitPacket_middleTruncatedOption()
122 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6AdvertisePacket()
145 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6SolicitPacket_unsupportedOption()
173 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6ReplyPacket()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp6/
DDhcp6Client.java19 import static android.net.dhcp6.Dhcp6Packet.IAID;
20 import static android.net.dhcp6.Dhcp6Packet.PrefixDelegation;
168 mClientDuid = Dhcp6Packet.createClientDuid(iface.macAddr); in Dhcp6Client()
275 private void handleReceivedPacket(@NonNull final Dhcp6Packet packet) { in handleReceivedPacket()
309 handleReceivedPacket((Dhcp6Packet) message.obj); in processMessage()
326 protected abstract void receivePacket(Dhcp6Packet packet); in receivePacket()
440 final ByteBuffer packet = Dhcp6Packet.buildSolicitPacket(transId, elapsedTimeMs, in sendSolicitPacket()
447 final ByteBuffer packet = Dhcp6Packet.buildRequestPacket(transId, elapsedTimeMs, in sendRequestPacket()
454 final ByteBuffer packet = Dhcp6Packet.buildRenewPacket(transId, elapsedTimeMs, in sendRenewPacket()
461 final ByteBuffer packet = Dhcp6Packet.buildRebindPacket(transId, elapsedTimeMs, in sendRebindPacket()
[all …]
DDhcp6Packet.java48 public class Dhcp6Packet { class
49 private static final String TAG = Dhcp6Packet.class.getSimpleName();
148 Dhcp6Packet(int transId, int elapsedTime, @NonNull final byte[] clientDuid, in Dhcp6Packet() method in Dhcp6Packet
439 private static Dhcp6Packet decode(@NonNull final ByteBuffer packet) throws ParseException { in decode()
532 Dhcp6Packet newPacket; in decode()
578 public static Dhcp6Packet decode(@NonNull final byte[] packet, int length) in decode()
DDhcp6RebindPacket.java32 public class Dhcp6RebindPacket extends Dhcp6Packet {
DDhcp6AdvertisePacket.java31 public class Dhcp6AdvertisePacket extends Dhcp6Packet {
DDhcp6RenewPacket.java32 public class Dhcp6RenewPacket extends Dhcp6Packet {
DDhcp6ReplyPacket.java32 public class Dhcp6ReplyPacket extends Dhcp6Packet {
DDhcp6RequestPacket.java31 public class Dhcp6RequestPacket extends Dhcp6Packet {
DDhcp6SolicitPacket.java30 public class Dhcp6SolicitPacket extends Dhcp6Packet {
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java39 import static android.net.dhcp6.Dhcp6Packet.PrefixDelegation;
162 import android.net.dhcp6.Dhcp6Packet;
163 import android.net.dhcp6.Dhcp6Packet.PrefixDelegation;
1170 private static ByteBuffer buildDhcp6Advertise(final Dhcp6Packet solicit, final byte[] iapd,
1172 final ByteBuffer advertise = Dhcp6Packet.buildAdvertisePacket(solicit.getTransactionId(),
1177 private static ByteBuffer buildDhcp6Reply(final Dhcp6Packet request, final byte[] iapd,
1180 final ByteBuffer reply = Dhcp6Packet.buildReplyPacket(request.getTransactionId(),
1376 private Dhcp6Packet getNextDhcp6Packet(final long timeout) throws Exception {
1383 final Dhcp6Packet dhcp6Packet = Dhcp6Packet.decode(payload, payload.length);
1389 private Dhcp6Packet getNextDhcp6Packet() throws Exception {
[all …]