Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java601 protected static void addTlv(ByteBuffer buf, byte type, byte value) { in addTlv() method in DhcpPacket
612 protected static void addTlv(ByteBuffer buf, byte type, @Nullable byte[] payload) { in addTlv() method in DhcpPacket
629 protected static void addTlv(ByteBuffer buf, byte type, @Nullable Inet4Address addr) { in addTlv() method in DhcpPacket
631 addTlv(buf, type, addr.getAddress()); in addTlv()
640 protected static void addTlv(ByteBuffer buf, byte type, @Nullable List<Inet4Address> addrs) { in addTlv() method in DhcpPacket
662 protected static void addTlv(ByteBuffer buf, byte type, @Nullable Short value) { in addTlv() method in DhcpPacket
675 protected static void addTlv(ByteBuffer buf, byte type, @Nullable Integer value) { in addTlv() method in DhcpPacket
688 protected static void addTlv(ByteBuffer buf, byte type, @Nullable String str) { in addTlv() method in DhcpPacket
691 addTlv(buf, type, str.getBytes("US-ASCII")); in addTlv()
722 addTlv(buf, DHCP_MAX_MESSAGE_SIZE, (short) MAX_LENGTH); in addCommonClientTlvs()
[all …]
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()
DDhcpReleasePacket.java52 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_RELEASE); in finishPacket()
53 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
54 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); 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()
DDhcpDiscoverPacket.java61 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_DISCOVER); in finishPacket()
62 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
64 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); in finishPacket()
DDhcpNakPacket.java58 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_NAK); in finishPacket()
59 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
60 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()
DDhcpOfferPacket.java73 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_OFFER); in finishPacket()
74 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
DDhcpAckPacket.java71 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_ACK); in finishPacket()
72 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java141 addTlv(buffer, DHCP_MESSAGE_TYPE, mType); in finishPacket()
143 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainBytes); in finishPacket()
146 addTlv(buffer, DHCP_VENDOR_INFO, mVendorInfoBytes); in finishPacket()
149 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTimeBytes); in finishPacket()
152 addTlv(buffer, DHCP_SUBNET_MASK, mNetmaskBytes); in finishPacket()