Home
last modified time | relevance | path

Searched refs:DhcpPacket (Results 1 – 19 of 19) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java19 import static android.net.dhcp.DhcpPacket.DHCP_BROADCAST_ADDRESS;
20 import static android.net.dhcp.DhcpPacket.DHCP_DNS_SERVER;
21 import static android.net.dhcp.DhcpPacket.DHCP_DOMAIN_NAME;
22 import static android.net.dhcp.DhcpPacket.DHCP_LEASE_TIME;
23 import static android.net.dhcp.DhcpPacket.DHCP_MESSAGE_TYPE_ACK;
24 import static android.net.dhcp.DhcpPacket.DHCP_MESSAGE_TYPE_OFFER;
25 import static android.net.dhcp.DhcpPacket.DHCP_MTU;
26 import static android.net.dhcp.DhcpPacket.DHCP_REBINDING_TIME;
27 import static android.net.dhcp.DhcpPacket.DHCP_RENEWAL_TIME;
28 import static android.net.dhcp.DhcpPacket.DHCP_ROUTER;
[all …]
DDhcpServerTest.java20 import static android.net.dhcp.DhcpPacket.DHCP_HOST_NAME;
21 import static android.net.dhcp.DhcpPacket.ENCAP_BOOTP;
22 import static android.net.dhcp.DhcpPacket.INADDR_ANY;
23 import static android.net.dhcp.DhcpPacket.INADDR_BROADCAST;
451 private void assertMatchesLease(@NonNull DhcpPacket packet, @NonNull Inet4Address srvAddr, in assertMatchesLease()
462 private void assertMatchesTestLease(@NonNull DhcpPacket packet, @Nullable String hostname) { in assertMatchesTestLease()
466 private void assertMatchesTestLease(@NonNull DhcpPacket packet) { in assertMatchesTestLease()
470 private void assertMatchesClient(@NonNull DhcpPacket packet) { in assertMatchesClient()
479 private static DhcpNakPacket assertNak(@Nullable DhcpPacket packet) { in assertNak()
484 private static DhcpAckPacket assertAck(@Nullable DhcpPacket packet) { in assertAck()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java19 import static android.net.dhcp.DhcpPacket.DHCP_BROADCAST_ADDRESS;
20 import static android.net.dhcp.DhcpPacket.DHCP_CAPTIVE_PORTAL;
21 import static android.net.dhcp.DhcpPacket.DHCP_DNS_SERVER;
22 import static android.net.dhcp.DhcpPacket.DHCP_DOMAIN_NAME;
23 import static android.net.dhcp.DhcpPacket.DHCP_LEASE_TIME;
24 import static android.net.dhcp.DhcpPacket.DHCP_MTU;
25 import static android.net.dhcp.DhcpPacket.DHCP_REBINDING_TIME;
26 import static android.net.dhcp.DhcpPacket.DHCP_RENEWAL_TIME;
27 import static android.net.dhcp.DhcpPacket.DHCP_ROUTER;
28 import static android.net.dhcp.DhcpPacket.DHCP_SUBNET_MASK;
[all …]
DDhcpServer.java19 import static android.net.dhcp.DhcpPacket.DHCP_CLIENT;
20 import static android.net.dhcp.DhcpPacket.DHCP_HOST_NAME;
21 import static android.net.dhcp.DhcpPacket.DHCP_SERVER;
22 import static android.net.dhcp.DhcpPacket.ENCAP_BOOTP;
204 Os.sendto(fd, buffer, 0, dst, DhcpPacket.DHCP_CLIENT); in sendPacket()
487 processPacket((DhcpPacket) msg.obj); in processMessage()
496 private void processPacket(@NonNull DhcpPacket packet) { in processPacket()
640 private Inet4Address getAckOrOfferDst(@NonNull DhcpPacket request, @NonNull DhcpLease lease, in getAckOrOfferDst()
659 private static boolean getBroadcastFlag(@NonNull DhcpPacket request, @NonNull DhcpLease lease) { in getBroadcastFlag()
676 private static String getHostnameIfRequested(@NonNull DhcpPacket request, in getHostnameIfRequested()
[all …]
DDhcpPacketListener.java37 protected final byte[] mBytes = new byte[DhcpPacket.MAX_LENGTH];
58 final DhcpPacket packet = DhcpPacket.decodeFullPacket(recvbuf.mBytes, length, in handlePacket()
59 DhcpPacket.ENCAP_BOOTP); in handlePacket()
61 } catch (DhcpPacket.ParseException e) { in handlePacket()
88 protected abstract void onReceive(@NonNull DhcpPacket packet, @NonNull Inet4Address srcAddr, in onReceive()
91 @NonNull DhcpPacket.ParseException e); in logParseError()
DDhcpPacket.java55 public abstract class DhcpPacket { class
376 protected DhcpPacket(int transId, short secs, Inet4Address clientIp, Inet4Address yourIp, in DhcpPacket() method in DhcpPacket
906 static DhcpPacket decodeFullPacket(ByteBuffer packet, int pktType, byte[] optionsToSkip) in decodeFullPacket()
1226 DhcpPacket newPacket; in decodeFullPacket()
1306 public static DhcpPacket decodeFullPacket(byte[] packet, int length, int pktType, in decodeFullPacket()
1321 public static DhcpPacket decodeFullPacket(byte[] packet, int length, int pktType) in decodeFullPacket()
1394 DhcpPacket pkt = new DhcpDiscoverPacket(transactionId, secs, INADDR_ANY /* relayIp */, in buildDiscoverPacket()
1411 DhcpPacket pkt = new DhcpOfferPacket( in buildOfferPacket()
1439 DhcpPacket pkt = new DhcpAckPacket( in buildAckPacket()
1463 DhcpPacket pkt = new DhcpNakPacket( in buildNakPacket()
[all …]
DDhcpReleasePacket.java25 public class DhcpReleasePacket extends DhcpPacket {
DDhcpInformPacket.java25 public class DhcpInformPacket extends DhcpPacket {
DDhcpNakPacket.java25 public class DhcpNakPacket extends DhcpPacket {
DDhcpDiscoverPacket.java25 public class DhcpDiscoverPacket extends DhcpPacket {
DDhcpDeclinePacket.java25 public class DhcpDeclinePacket extends DhcpPacket {
DDhcpRequestPacket.java25 public class DhcpRequestPacket extends DhcpPacket {
DDhcpOfferPacket.java25 public class DhcpOfferPacket extends DhcpPacket {
DDhcpAckPacket.java25 public class DhcpAckPacket extends DhcpPacket {
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java20 import static android.net.dhcp.DhcpPacket.DHCP_BOOTREQUEST;
21 import static android.net.dhcp.DhcpPacket.DHCP_CLIENT;
22 import static android.net.dhcp.DhcpPacket.DHCP_MAGIC_COOKIE;
23 import static android.net.dhcp.DhcpPacket.DHCP_SERVER;
24 import static android.net.dhcp.DhcpPacket.ENCAP_L2;
25 import static android.net.dhcp.DhcpPacket.INADDR_BROADCAST;
26 import static android.net.dhcp.DhcpPacket.INFINITE_LEASE;
106 import android.net.dhcp.DhcpPacket;
107 import android.net.dhcp.DhcpPacket.ParseException;
551 private static ByteBuffer buildDhcpOfferPacket(final DhcpPacket packet,
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/
DArpPacketTest.java28 import android.net.dhcp.DhcpPacket;
147 final ByteBuffer arpProbe = ArpPacket.buildArpPacket(DhcpPacket.ETHER_BROADCAST, in testBuildArpProbePacket()
155 final ByteBuffer arpAnnounce = ArpPacket.buildArpPacket(DhcpPacket.ETHER_BROADCAST, in testBuildArpAnnouncePacket()
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java60 import android.net.dhcp.DhcpPacket;
386 final DhcpPacket dhcpPacket; in parseDHCPv4()
388 dhcpPacket = DhcpPacket.decodeFullPacket(mBytes, mLength, DhcpPacket.ENCAP_L2); in parseDHCPv4()
390 } catch (DhcpPacket.ParseException e) { in parseDHCPv4()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DNetworkIpProvisioningMetricsTest.java19 import android.net.dhcp.DhcpPacket;
70 DhcpErrorEvent.BUFFER_UNDERFLOW, DhcpPacket.DHCP_HOST_NAME)); in testIpProvisioningMetrics_addDhcpErrorCode()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java46 import android.net.dhcp.DhcpPacket;
1447 mDhcpResults.vendorInfo = DhcpPacket.VENDOR_INFO_ANDROID_METERED; in handleIPv4Success()