Home
last modified time | relevance | path

Searched refs:addTlv (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/net/java/android/net/dhcp/
DDhcpOfferPacket.java73 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_OFFER); in finishPacket()
74 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
75 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTime); in finishPacket()
79 addTlv(buffer, DHCP_RENEWAL_TIME, in finishPacket()
83 addTlv(buffer, DHCP_SUBNET_MASK, mSubnetMask); in finishPacket()
84 addTlv(buffer, DHCP_ROUTER, mGateways); in finishPacket()
85 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainName); in finishPacket()
86 addTlv(buffer, DHCP_BROADCAST_ADDRESS, mBroadcastAddress); in finishPacket()
87 addTlv(buffer, DHCP_DNS_SERVER, mDnsServers); in finishPacket()
DDhcpAckPacket.java71 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_ACK); in finishPacket()
72 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
73 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTime); in finishPacket()
77 addTlv(buffer, DHCP_RENEWAL_TIME, in finishPacket()
81 addTlv(buffer, DHCP_SUBNET_MASK, mSubnetMask); in finishPacket()
82 addTlv(buffer, DHCP_ROUTER, mGateways); in finishPacket()
83 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainName); in finishPacket()
84 addTlv(buffer, DHCP_BROADCAST_ADDRESS, mBroadcastAddress); in finishPacket()
85 addTlv(buffer, DHCP_DNS_SERVER, mDnsServers); in finishPacket()
DDhcpRequestPacket.java59 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_REQUEST); in finishPacket()
60 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
62 addTlv(buffer, DHCP_REQUESTED_IP, mRequestedIp); in finishPacket()
65 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
68 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); in finishPacket()
DDhcpDiscoverPacket.java54 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_DISCOVER); in finishPacket()
55 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
57 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); in finishPacket()
DDhcpInformPacket.java56 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_INFORM); in finishPacket()
57 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
59 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); in finishPacket()
DDhcpNakPacket.java59 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_NAK); in finishPacket()
60 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
61 addTlv(buffer, DHCP_MESSAGE, mMessage); in finishPacket()
DDhcpDeclinePacket.java56 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_DECLINE); in finishPacket()
57 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
DDhcpPacket.java523 protected static void addTlv(ByteBuffer buf, byte type, byte value) { in addTlv() method in DhcpPacket
532 protected static void addTlv(ByteBuffer buf, byte type, byte[] payload) { in addTlv() method in DhcpPacket
547 protected static void addTlv(ByteBuffer buf, byte type, Inet4Address addr) { in addTlv() method in DhcpPacket
549 addTlv(buf, type, addr.getAddress()); in addTlv()
556 protected static void addTlv(ByteBuffer buf, byte type, List<Inet4Address> addrs) { in addTlv() method in DhcpPacket
576 protected static void addTlv(ByteBuffer buf, byte type, Short value) { in addTlv() method in DhcpPacket
587 protected static void addTlv(ByteBuffer buf, byte type, Integer value) { in addTlv() method in DhcpPacket
598 protected static void addTlv(ByteBuffer buf, byte type, String str) { in addTlv() method in DhcpPacket
600 addTlv(buf, type, str.getBytes("US-ASCII")); in addTlv()
630 addTlv(buf, DHCP_MAX_MESSAGE_SIZE, (short) MAX_LENGTH); in addCommonClientTlvs()
[all …]
/frameworks/base/services/tests/servicestests/src/android/net/dhcp/
DDhcpPacketTest.java99 addTlv(buffer, DHCP_MESSAGE_TYPE, mType); in finishPacket()
101 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainBytes); in finishPacket()
104 addTlv(buffer, DHCP_VENDOR_INFO, mVendorInfoBytes); in finishPacket()
107 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTimeBytes); in finishPacket()
110 addTlv(buffer, DHCP_SUBNET_MASK, mNetmaskBytes); in finishPacket()