Home
last modified time | relevance | path

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

/frameworks/base/services/net/java/android/net/dhcp/
DDhcpPacket.java300 public abstract ByteBuffer buildPacket(int encap, short destUdp, in buildPacket() argument
356 protected void fillInPacket(int encap, Inet4Address destIp, in fillInPacket() argument
372 if (encap == ENCAP_L2) { in fillInPacket()
381 if (encap <= ENCAP_L3) { in fillInPacket()
441 if (encap <= ENCAP_L3) { in fillInPacket()
1174 public static ByteBuffer buildDiscoverPacket(int encap, int transactionId, in buildDiscoverPacket() argument
1179 return pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); in buildDiscoverPacket()
1186 public static ByteBuffer buildOfferPacket(int encap, int transactionId, in buildOfferPacket() argument
1200 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildOfferPacket()
1206 public static ByteBuffer buildAckPacket(int encap, int transactionId, in buildAckPacket() argument
[all …]
DDhcpDeclinePacket.java43 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
46 fillInPacket(encap, mClientIp, mYourIp, destUdp, srcUdp, result, in buildPacket()
DDhcpDiscoverPacket.java42 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
44 fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp, in buildPacket()
DDhcpInformPacket.java43 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
46 fillInPacket(encap, mClientIp, mYourIp, destUdp, srcUdp, result, in buildPacket()
DDhcpNakPacket.java44 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
49 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
DDhcpRequestPacket.java46 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
49 fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp, srcUdp, in buildPacket()
DDhcpOfferPacket.java58 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
63 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
DDhcpAckPacket.java56 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
61 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
DDhcpClient.java397 private boolean transmitPacket(ByteBuffer buf, String description, int encap, Inet4Address to) { in transmitPacket() argument
399 if (encap == DhcpPacket.ENCAP_L2) { in transmitPacket()
402 } else if (encap == DhcpPacket.ENCAP_BOOTP && to.equals(INADDR_BROADCAST)) { in transmitPacket()
436 final int encap = INADDR_ANY.equals(clientAddress) in sendRequestPacket() local
440 encap, mTransactionId, getSecs(), clientAddress, in sendRequestPacket()
447 return transmitPacket(packet, description, encap, to); in sendRequestPacket()
/frameworks/base/tests/net/java/android/net/dhcp/
DDhcpPacketTest.java103 public ByteBuffer buildPacket(int encap, short unusedDestUdp, short unusedSrcUdp) { in buildPacket() argument
105 fillInPacket(encap, CLIENT_ADDR, SERVER_ADDR, in buildPacket()