Searched refs:DhcpPacket (Results 1 – 15 of 15) sorted by relevance
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 19 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 …]
|
D | DhcpServerTest.java | 20 import static android.net.dhcp.DhcpPacket.DHCP_CLIENT; 21 import static android.net.dhcp.DhcpPacket.DHCP_HOST_NAME; 22 import static android.net.dhcp.DhcpPacket.ENCAP_BOOTP; 23 import static android.net.dhcp.DhcpPacket.INADDR_ANY; 24 import static android.net.dhcp.DhcpPacket.INADDR_BROADCAST; 287 private void assertMatchesTestLease(@NonNull DhcpPacket packet, @Nullable String hostname) { in assertMatchesTestLease() 297 private void assertMatchesTestLease(@NonNull DhcpPacket packet) { in assertMatchesTestLease() 301 private void assertMatchesClient(@NonNull DhcpPacket packet) { in assertMatchesClient() 310 private static DhcpNakPacket assertNak(@Nullable DhcpPacket packet) { in assertNak() 315 private static DhcpAckPacket assertAck(@Nullable DhcpPacket packet) { in assertAck() [all …]
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 19 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_MTU; 24 import static android.net.dhcp.DhcpPacket.DHCP_REBINDING_TIME; 25 import static android.net.dhcp.DhcpPacket.DHCP_RENEWAL_TIME; 26 import static android.net.dhcp.DhcpPacket.DHCP_ROUTER; 27 import static android.net.dhcp.DhcpPacket.DHCP_SUBNET_MASK; 28 import static android.net.dhcp.DhcpPacket.DHCP_VENDOR_INFO; [all …]
|
D | DhcpServer.java | 19 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; 186 Os.sendto(fd, buffer, 0, dst, DhcpPacket.DHCP_CLIENT); in sendPacket() 352 void processPacket(@NonNull DhcpPacket packet, int srcPort) { in processPacket() 433 private Inet4Address getAckOrOfferDst(@NonNull DhcpPacket request, @NonNull DhcpLease lease, in getAckOrOfferDst() 452 private static boolean getBroadcastFlag(@NonNull DhcpPacket request, @NonNull DhcpLease lease) { in getBroadcastFlag() 469 private static String getHostnameIfRequested(@NonNull DhcpPacket request, in getHostnameIfRequested() 476 private boolean transmitOffer(@NonNull DhcpPacket request, @NonNull DhcpLease lease, in transmitOffer() [all …]
|
D | DhcpPacketListener.java | 35 protected final byte[] mBytes = new byte[DhcpPacket.MAX_LENGTH]; 56 final DhcpPacket packet = DhcpPacket.decodeFullPacket(recvbuf.mBytes, length, in handlePacket() 57 DhcpPacket.ENCAP_BOOTP); in handlePacket() 59 } catch (DhcpPacket.ParseException e) { in handlePacket() 84 protected abstract void onReceive(@NonNull DhcpPacket packet, @NonNull Inet4Address srcAddr, in onReceive() 87 @NonNull DhcpPacket.ParseException e); in logParseError()
|
D | DhcpPacket.java | 37 public abstract class DhcpPacket { class 346 protected DhcpPacket(int transId, short secs, Inet4Address clientIp, Inet4Address yourIp, in DhcpPacket() method in DhcpPacket 843 static DhcpPacket decodeFullPacket(ByteBuffer packet, int pktType) throws ParseException in decodeFullPacket() 1152 DhcpPacket newPacket; in decodeFullPacket() 1230 public static DhcpPacket decodeFullPacket(byte[] packet, int length, int pktType) in decodeFullPacket() 1308 DhcpPacket pkt = new DhcpDiscoverPacket(transactionId, secs, INADDR_ANY /* relayIp */, in buildDiscoverPacket() 1324 DhcpPacket pkt = new DhcpOfferPacket( in buildOfferPacket() 1351 DhcpPacket pkt = new DhcpAckPacket( in buildAckPacket() 1374 DhcpPacket pkt = new DhcpNakPacket( in buildNakPacket() 1388 DhcpPacket pkt = new DhcpRequestPacket(transactionId, secs, clientIp, in buildRequestPacket()
|
D | DhcpDeclinePacket.java | 25 class DhcpDeclinePacket extends DhcpPacket {
|
D | DhcpReleasePacket.java | 25 class DhcpReleasePacket extends DhcpPacket {
|
D | DhcpInformPacket.java | 25 class DhcpInformPacket extends DhcpPacket {
|
D | DhcpDiscoverPacket.java | 25 class DhcpDiscoverPacket extends DhcpPacket {
|
D | DhcpNakPacket.java | 25 class DhcpNakPacket extends DhcpPacket {
|
D | DhcpRequestPacket.java | 27 class DhcpRequestPacket extends DhcpPacket {
|
D | DhcpOfferPacket.java | 25 class DhcpOfferPacket extends DhcpPacket {
|
D | DhcpAckPacket.java | 25 class DhcpAckPacket extends DhcpPacket {
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | ConnectivityPacketSummary.java | 60 import android.net.dhcp.DhcpPacket; 372 final DhcpPacket dhcpPacket; in parseDHCPv4() 374 dhcpPacket = DhcpPacket.decodeFullPacket(mBytes, mLength, DhcpPacket.ENCAP_L2); in parseDHCPv4() 376 } catch (DhcpPacket.ParseException e) { in parseDHCPv4()
|